Skip to content

v3.0.0

Latest

Choose a tag to compare

@kemingy kemingy released this 10 Sep 15:20
· 14 commits to main since this release
e36a739

Note

Check the migration guide

Highlights

  • Add a model-adapter protocol for backend-independent validation, serialization, and schema generation.
  • Add msgspec support.
  • Support plain dataclasses as request and response models.
  • Improve model naming for wrapped types such as Annotated[Item, ...] and list[Item].
  • Use the active adapter for validation errors, file models, hooks, and Starlette model responses.
  • Close uploaded files deterministically.

What's Changed

  • feat: start to replace pydantic with dataclass by @kemingy in #468
  • chore(actions): bump the all-actions group with 2 updates by @dependabot[bot] in #469
  • feat: introduce the model adaptive layer by @kemingy in #476
  • chore: use uv pkg ecosystem in dependabot by @kemingy in #477
  • chore(actions): bump actions/upload-pages-artifact from 4 to 5 in the all-actions group by @dependabot[bot] in #478
  • feat: support msgspec as another model adapter by @kemingy in #479
  • chore(pip): bump the all-pips group across 1 directory with 5 updates by @dependabot[bot] in #480
  • chore(pip): bump python-multipart from 0.0.26 to 0.0.27 by @dependabot[bot] in #481
  • chore: add changelog, prepare v3 by @kemingy in #482
  • chore(pip): bump urllib3 from 2.6.3 to 2.7.0 by @dependabot[bot] in #483
  • feat: use pdm-backend as the build backend by @kemingy in #484
  • chore: fix some code scan issues by @kemingy in #485
  • chore(pip): bump idna from 3.11 to 3.15 by @dependabot[bot] in #486
  • feat: add adapter-agnostic model contract tests by @kemingy in #487
  • feat: add adapter test to response by @kemingy in #488
  • feat: test model adapter with basic falcon by @kemingy in #489
  • feat: test model adapter on config by @kemingy in #490
  • chore(pip): bump the all-pips group with 5 updates by @dependabot[bot] in #494
  • chore(pip): bump starlette from 1.0.0 to 1.0.1 by @dependabot[bot] in #495
  • refactor: use dataclass as the source for adapter by @kemingy in #491
  • chore(pip): bump starlette from 1.0.1 to 1.3.1 by @dependabot[bot] in #497
  • chore(pip): bump python-multipart from 0.0.27 to 0.0.31 by @dependabot[bot] in #496
  • refactor: merge all the falcon related test by @kemingy in #498
  • chore(actions): bump actions/checkout from 6 to 7 in the all-actions group by @dependabot[bot] in #499
  • chore(pip): bump the all-pips group with 8 updates by @dependabot[bot] in #500
  • fix: apply the model adapter to all the tests by @kemingy in #504
  • chore: pin github ci action commits by @kemingy in #505
  • chore: bump py versions, fix ruff, update changelog by @kemingy in #506
  • feat: support dataclass as model type by @kemingy in #511
  • refactor: use function metadata to avoid dynamic attr by @kemingy in #512
  • fix: ignore unsolvable return annotation in annotations mode (#493 continuation) by @alexted in #508
  • docs: demonstrate dataclasses with msgspec by @kemingy in #513
  • chore(pip): bump the all-pips group with 5 updates by @dependabot[bot] in #515
  • chore(actions): bump astral-sh/setup-uv from 9.0.0 to 10.0.1 in the all-actions group by @dependabot[bot] in #514
  • ci: run CodeQL checks on main by @kemingy in #516
  • fix: close uploaded files deterministically by @kemingy in #520
  • test: expose and assert warnings by @kemingy in #521
  • fix(flask): bypass validation for WebSocket routes by @kemingy in #517
  • docs: add migration guide by @kemingy in #519
  • chore: add typos ci, fix typos in readme by @kemingy in #523
  • chore(pip): bump httpx2 from 2.10.0 to 2.12.0 by @dependabot[bot] in #524
  • chore: prepare v3.0.0 release by @kemingy in #525

New Contributors

Full Changelog: v2.0.3...v3.0.0