Overview

Litestar 2.17, released on August 9, 2025, fixes a CRLF issue and adds parameter exclusion in the OpenAPI schema.

Main Features

CRLF fix and OpenAPI exclusion

The CRLF fix resolves a multiline header parsing issue. Parameter exclusion allows hiding specific fields from the generated OpenAPI schema.

python
from litestar import Litestar, get
from litestar.params import Parameter

@get('/items')
async def list_items(
    page: int = 1,
    internal_key: str = Parameter(exclude_from_open_api=True),
) -> list[dict]:
    return [{'id': 1, 'name': 'item'}]

app = Litestar([list_items])

Sources