ormar-orm
ormar
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix: support pydantic 2.13 by invalidating cached model schema (#1694) * fix: support pydantic 2.13 by invalidating cached model schema Pydantic 2.13 changed how `TypeAdapter(Annotated[T, FieldInfo(...)])` — FastAPI's response-serializer pattern — resolves nested schemas: it now uses the cached child snapshot instead of walking the live model. As a result, reverse-relation fields that ormar's metaclass adds to related models in `expand_reverse_relationships` were invisible from nested dumps under pydantic 2.13. Invalidate the parent's cached schema by setting `__pydantic_complete__ = False` at the end of the ormar metaclass, so the next access recompiles afresh without the stale snapshot. Make the wrap-serializer fallbacks (forward + reverse relation) defensive against the broader value types (QuerysetProxy, dead weakproxy) that pydantic 2.13 now dispatches them with. Relax the pydantic upper bound so 2.13.x is accepted. * build: pin pydantic below 2.14 due to internals dependency Ormar relies on pydantic internals, so the upper bound is capped at <2.14 and must be bumped manually after verifying compatibility with each new release. Refreshes the lock content-hash; resolved versions are unchanged (pydantic stays at 2.12.5).
master
2 days ago
Merge branch 'master' into fix/pydantic-213-defer-build
fix/pydantic-213-defer-build
2 days ago
build: pin pydantic below 2.14 due to internals dependency Ormar relies on pydantic internals, so the upper bound is capped at <2.14 and must be bumped manually after verifying compatibility with each new release. Refreshes the lock content-hash; resolved versions are unchanged (pydantic stays at 2.12.5).
fix/pydantic-213-defer-build
2 days ago
fix: support pydantic 2.13 by invalidating cached model schema Pydantic 2.13 changed how `TypeAdapter(Annotated[T, FieldInfo(...)])` — FastAPI's response-serializer pattern — resolves nested schemas: it now uses the cached child snapshot instead of walking the live model. As a result, reverse-relation fields that ormar's metaclass adds to related models in `expand_reverse_relationships` were invisible from nested dumps under pydantic 2.13. Invalidate the parent's cached schema by setting `__pydantic_complete__ = False` at the end of the ormar metaclass, so the next access recompiles afresh without the stale snapshot. Make the wrap-serializer fallbacks (forward + reverse relation) defensive against the broader value types (QuerysetProxy, dead weakproxy) that pydantic 2.13 now dispatches them with. Relax the pydantic upper bound so 2.13.x is accepted.
fix/pydantic-213-defer-build
3 days ago
build(deps-dev): bump pytest-codspeed from 4.5.0 to 5.0.2 (#1682) Bumps [pytest-codspeed](https://github.com/CodSpeedHQ/pytest-codspeed) from 4.5.0 to 5.0.2. - [Release notes](https://github.com/CodSpeedHQ/pytest-codspeed/releases) - [Changelog](https://github.com/CodSpeedHQ/pytest-codspeed/blob/master/CHANGELOG.md) - [Commits](https://github.com/CodSpeedHQ/pytest-codspeed/compare/v4.5.0...v5.0.2) --- updated-dependencies: - dependency-name: pytest-codspeed dependency-version: 5.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
master
7 days ago
docs: clarify get/first/last MultipleMatches semantics (#1678) first/last (and their _or_none variants) always run with LIMIT 1 and never raise MultipleMatches — the docstrings claimed otherwise. get() only enforces the single-match contract when criteria are set; the no-criteria fallback returns the last row by pk and cannot raise MultipleMatches either. Updates the queryset and querysetproxy docstrings plus docs/queries/read.md to spell out this distinction. Refs #967
master
13 days ago
Merge branch 'master' into docs/clarify-get-first-multiple-matches
docs/clarify-get-first-multiple-matches
13 days ago
Merge branch 'master' into docs/clarify-get-first-multiple-matches
docs/clarify-get-first-multiple-matches
14 days ago
Latest Branches
CodSpeed Performance Gauge
+47%
fix: support pydantic 2.13 by invalidating cached model schema
#1694
2 days ago
a23f777
fix/pydantic-213-defer-build
CodSpeed Performance Gauge
+5%
docs: clarify get/first/last MultipleMatches semantics
#1678
13 days ago
fc1ddb1
docs/clarify-get-first-multiple-matches
CodSpeed Performance Gauge
+1%
add comment
#1677
14 days ago
c28aec0
docs/clarify-column-comparison-in-alembic
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs