litestar-org/litestar (litestar)
### [`v2.8.0`](https://togithub.com/litestar-org/litestar/releases/tag/v2.8.0)
[Compare Source](https://togithub.com/litestar-org/litestar/compare/v2.7.1...v2.8.0)
#### Sponsors π
Thanks to these incredible business sponsors:
- [Scalar](https://scalar.com/) ([@scalar](https://togithub.com/scalar)), [Telemetry Sports](https://telemetrysports.com/) (via [@chris-telemetry](https://togithub.com/chris-telemetry)), [Stok](https://www.stok.kr/) ([@stok-team](https://togithub.com/stok-team))
Thanks to these incredible personal sponsors:
- [Polar.sh](https://polar.sh/litestar-org/subscriptions): [@thomastu](https://togithub.com/thomastu), [@skewty](https://togithub.com/skewty), [@iRod3s](https://togithub.com/iRod3s)
- [GitHub Sponsors](https://togithub.com/sponsors/litestar-org/): ([@stok-team](https://togithub.com/stok-team)), [@benjamin-kirkbride](https://togithub.com/benjamin-kirkbride), [@crisog](https://togithub.com/crisog), [@geeshta](https://togithub.com/geeshta), [@cbscsm](https://togithub.com/cbscsm), [@ruslan-korneev](https://togithub.com/ruslan-korneev),
- [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous
- A huge 'Thank you!' to all sponsors, subscribers, and contributors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://togithub.com/sponsors/litestar-org/)!
#### What's changed
##### New contributors π
- [@carlsmedstad](https://togithub.com/carlsmedstad) made their first contribution in [https://github.com/litestar-org/litestar/pull/3291](https://togithub.com/litestar-org/litestar/pull/3291)
- [@haryle](https://togithub.com/haryle) made their first contribution in [https://github.com/litestar-org/litestar/pull/3242](https://togithub.com/litestar-org/litestar/pull/3242)
- [@winbornejw](https://togithub.com/winbornejw) made their first contribution in [https://github.com/litestar-org/litestar/pull/3136](https://togithub.com/litestar-org/litestar/pull/3136)
##### Bugfixes π
- fix(cli): remove duplicate rich-click config options by [@JacobCoffee](https://togithub.com/JacobCoffee) in [https://github.com/litestar-org/litestar/pull/3274](https://togithub.com/litestar-org/litestar/pull/3274)
- fix: pydantic `json_schema_extra` examples. by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3281](https://togithub.com/litestar-org/litestar/pull/3281)
- fix(openapi): set default on schema from `FieldDefinition` by [@guacs](https://togithub.com/guacs) in [https://github.com/litestar-org/litestar/pull/3280](https://togithub.com/litestar-org/litestar/pull/3280)
- fix: Custom types cause serialisation error in exception response with non-JSON media-type by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3284](https://togithub.com/litestar-org/litestar/pull/3284)
- fix(OpenAPI): Ensure default values are always represented in schema for dataclasses and `msgspec.Struct`s by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3285](https://togithub.com/litestar-org/litestar/pull/3285)
- fix(DTO): Pydantic v2 error handling/serialization when for non-pydantic exceptions by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3286](https://togithub.com/litestar-org/litestar/pull/3286)
- fix(OpenAPI): Fix OpenAPI schema generation for paths with path parameters of different types on the same path by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3293](https://togithub.com/litestar-org/litestar/pull/3293)
- fix(OpenAPI): Document unconsumed path parameters by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3295](https://togithub.com/litestar-org/litestar/pull/3295)
- fix: Unique schema names for nested models ([#3134](https://togithub.com/litestar-org/litestar/issues/3134)) by [@winbornejw](https://togithub.com/winbornejw) in [https://github.com/litestar-org/litestar/pull/3136](https://togithub.com/litestar-org/litestar/pull/3136)
##### New features π
- feat: add [Scalar.com](https://scalar.com/) as an OpenAPI docs generator option
- feat: allow for console output to be silenced by [@cofin](https://togithub.com/cofin) in [https://github.com/litestar-org/litestar/pull/3180](https://togithub.com/litestar-org/litestar/pull/3180)
- feat: add flash plugin by [@euri10](https://togithub.com/euri10) in [https://github.com/litestar-org/litestar/pull/3145](https://togithub.com/litestar-org/litestar/pull/3145)
- feat: Use memoized `request_class` and `response_class` values by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3205](https://togithub.com/litestar-org/litestar/pull/3205)
- feat(DTO): Enable codegen backend by default by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3215](https://togithub.com/litestar-org/litestar/pull/3215)
- feat: Added precedence of CLI parameters over envs by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3190](https://togithub.com/litestar-org/litestar/pull/3190)
- feat: only print when terminal is `TTY` enabled by [@cofin](https://togithub.com/cofin) in [https://github.com/litestar-org/litestar/pull/3219](https://togithub.com/litestar-org/litestar/pull/3219)
- feat: Support `schema_extra` in `Parameter` and `Body` by [@tuukkamustonen](https://togithub.com/tuukkamustonen) in [https://github.com/litestar-org/litestar/pull/3204](https://togithub.com/litestar-org/litestar/pull/3204)
- feat: add typevar expansion by [@haryle](https://togithub.com/haryle) in [https://github.com/litestar-org/litestar/pull/3242](https://togithub.com/litestar-org/litestar/pull/3242)
- feat: Add LITESTAR\_ prefix before WEB_CONCURRENCY env option by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3227](https://togithub.com/litestar-org/litestar/pull/3227)
- feat: Warn about ambiguous default values in parameter specifications by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3283](https://togithub.com/litestar-org/litestar/pull/3283)
- feat: support declaring `DTOField` via `Annotated` by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3289](https://togithub.com/litestar-org/litestar/pull/3289)
- feat: Add `TRACE` to HttpMethod enum by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3294](https://togithub.com/litestar-org/litestar/pull/3294)
- feat: Pydantic dto non instantiable types by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3296](https://togithub.com/litestar-org/litestar/pull/3296)
- feat: Add `path` parameter to Litestar application class by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3314](https://togithub.com/litestar-org/litestar/pull/3314)
##### Other changes
- docs(channels): Fix subscriber examples by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3287](https://togithub.com/litestar-org/litestar/pull/3287)
- docs: Expand the acronym for Data Transfer Object in `What's New in v2` by [@cclauss](https://togithub.com/cclauss) in [https://github.com/litestar-org/litestar/pull/3288](https://togithub.com/litestar-org/litestar/pull/3288)
- docs: Add examples for auth `exclude` configuration by [@aranvir](https://togithub.com/aranvir) in [https://github.com/litestar-org/litestar/pull/3246](https://togithub.com/litestar-org/litestar/pull/3246)
- refactor: Reduce module import time by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3282](https://togithub.com/litestar-org/litestar/pull/3282)
- refactor: remove CacheControlHeader dependency on AbstractDTO by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3307](https://togithub.com/litestar-org/litestar/pull/3307)
**Full Changelog**
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
>=2.7,<2.8
->>=2.8,<2.9
Release Notes
litestar-org/litestar (litestar)
### [`v2.8.0`](https://togithub.com/litestar-org/litestar/releases/tag/v2.8.0) [Compare Source](https://togithub.com/litestar-org/litestar/compare/v2.7.1...v2.8.0) #### Sponsors π Thanks to these incredible business sponsors: - [Scalar](https://scalar.com/) ([@scalar](https://togithub.com/scalar)), [Telemetry Sports](https://telemetrysports.com/) (via [@chris-telemetry](https://togithub.com/chris-telemetry)), [Stok](https://www.stok.kr/) ([@stok-team](https://togithub.com/stok-team)) Thanks to these incredible personal sponsors: - [Polar.sh](https://polar.sh/litestar-org/subscriptions): [@thomastu](https://togithub.com/thomastu), [@skewty](https://togithub.com/skewty), [@iRod3s](https://togithub.com/iRod3s) - [GitHub Sponsors](https://togithub.com/sponsors/litestar-org/): ([@stok-team](https://togithub.com/stok-team)), [@benjamin-kirkbride](https://togithub.com/benjamin-kirkbride), [@crisog](https://togithub.com/crisog), [@geeshta](https://togithub.com/geeshta), [@cbscsm](https://togithub.com/cbscsm), [@ruslan-korneev](https://togithub.com/ruslan-korneev), - [OpenCollective](https://opencollective.com/litestar): Christian Y, Anonymous - A huge 'Thank you!' to all sponsors, subscribers, and contributors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://togithub.com/sponsors/litestar-org/)! #### What's changed ##### New contributors π - [@carlsmedstad](https://togithub.com/carlsmedstad) made their first contribution in [https://github.com/litestar-org/litestar/pull/3291](https://togithub.com/litestar-org/litestar/pull/3291) - [@haryle](https://togithub.com/haryle) made their first contribution in [https://github.com/litestar-org/litestar/pull/3242](https://togithub.com/litestar-org/litestar/pull/3242) - [@winbornejw](https://togithub.com/winbornejw) made their first contribution in [https://github.com/litestar-org/litestar/pull/3136](https://togithub.com/litestar-org/litestar/pull/3136) ##### Bugfixes π - fix(cli): remove duplicate rich-click config options by [@JacobCoffee](https://togithub.com/JacobCoffee) in [https://github.com/litestar-org/litestar/pull/3274](https://togithub.com/litestar-org/litestar/pull/3274) - fix: pydantic `json_schema_extra` examples. by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3281](https://togithub.com/litestar-org/litestar/pull/3281) - fix(openapi): set default on schema from `FieldDefinition` by [@guacs](https://togithub.com/guacs) in [https://github.com/litestar-org/litestar/pull/3280](https://togithub.com/litestar-org/litestar/pull/3280) - fix: Custom types cause serialisation error in exception response with non-JSON media-type by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3284](https://togithub.com/litestar-org/litestar/pull/3284) - fix(OpenAPI): Ensure default values are always represented in schema for dataclasses and `msgspec.Struct`s by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3285](https://togithub.com/litestar-org/litestar/pull/3285) - fix(DTO): Pydantic v2 error handling/serialization when for non-pydantic exceptions by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3286](https://togithub.com/litestar-org/litestar/pull/3286) - fix(OpenAPI): Fix OpenAPI schema generation for paths with path parameters of different types on the same path by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3293](https://togithub.com/litestar-org/litestar/pull/3293) - fix(OpenAPI): Document unconsumed path parameters by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3295](https://togithub.com/litestar-org/litestar/pull/3295) - fix: Unique schema names for nested models ([#3134](https://togithub.com/litestar-org/litestar/issues/3134)) by [@winbornejw](https://togithub.com/winbornejw) in [https://github.com/litestar-org/litestar/pull/3136](https://togithub.com/litestar-org/litestar/pull/3136) ##### New features π - feat: add [Scalar.com](https://scalar.com/) as an OpenAPI docs generator option - feat: allow for console output to be silenced by [@cofin](https://togithub.com/cofin) in [https://github.com/litestar-org/litestar/pull/3180](https://togithub.com/litestar-org/litestar/pull/3180) - feat: add flash plugin by [@euri10](https://togithub.com/euri10) in [https://github.com/litestar-org/litestar/pull/3145](https://togithub.com/litestar-org/litestar/pull/3145) - feat: Use memoized `request_class` and `response_class` values by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3205](https://togithub.com/litestar-org/litestar/pull/3205) - feat(DTO): Enable codegen backend by default by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3215](https://togithub.com/litestar-org/litestar/pull/3215) - feat: Added precedence of CLI parameters over envs by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3190](https://togithub.com/litestar-org/litestar/pull/3190) - feat: only print when terminal is `TTY` enabled by [@cofin](https://togithub.com/cofin) in [https://github.com/litestar-org/litestar/pull/3219](https://togithub.com/litestar-org/litestar/pull/3219) - feat: Support `schema_extra` in `Parameter` and `Body` by [@tuukkamustonen](https://togithub.com/tuukkamustonen) in [https://github.com/litestar-org/litestar/pull/3204](https://togithub.com/litestar-org/litestar/pull/3204) - feat: add typevar expansion by [@haryle](https://togithub.com/haryle) in [https://github.com/litestar-org/litestar/pull/3242](https://togithub.com/litestar-org/litestar/pull/3242) - feat: Add LITESTAR\_ prefix before WEB_CONCURRENCY env option by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3227](https://togithub.com/litestar-org/litestar/pull/3227) - feat: Warn about ambiguous default values in parameter specifications by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3283](https://togithub.com/litestar-org/litestar/pull/3283) - feat: support declaring `DTOField` via `Annotated` by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3289](https://togithub.com/litestar-org/litestar/pull/3289) - feat: Add `TRACE` to HttpMethod enum by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3294](https://togithub.com/litestar-org/litestar/pull/3294) - feat: Pydantic dto non instantiable types by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3296](https://togithub.com/litestar-org/litestar/pull/3296) - feat: Add `path` parameter to Litestar application class by [@kedod](https://togithub.com/kedod) in [https://github.com/litestar-org/litestar/pull/3314](https://togithub.com/litestar-org/litestar/pull/3314) ##### Other changes - docs(channels): Fix subscriber examples by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3287](https://togithub.com/litestar-org/litestar/pull/3287) - docs: Expand the acronym for Data Transfer Object in `What's New in v2` by [@cclauss](https://togithub.com/cclauss) in [https://github.com/litestar-org/litestar/pull/3288](https://togithub.com/litestar-org/litestar/pull/3288) - docs: Add examples for auth `exclude` configuration by [@aranvir](https://togithub.com/aranvir) in [https://github.com/litestar-org/litestar/pull/3246](https://togithub.com/litestar-org/litestar/pull/3246) - refactor: Reduce module import time by [@provinzkraut](https://togithub.com/provinzkraut) in [https://github.com/litestar-org/litestar/pull/3282](https://togithub.com/litestar-org/litestar/pull/3282) - refactor: remove CacheControlHeader dependency on AbstractDTO by [@peterschutt](https://togithub.com/peterschutt) in [https://github.com/litestar-org/litestar/pull/3307](https://togithub.com/litestar-org/litestar/pull/3307) **Full Changelog**Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.