Avatar for the ormar-orm user
ormar-orm
ormar
BlogDocsChangelog

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
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%
13 days ago
fc1ddb1
docs/clarify-get-first-multiple-matches
CodSpeed Performance Gauge
+1%
14 days ago
c28aec0
docs/clarify-column-comparison-in-alembic
© 2026 CodSpeed Technology
Home Terms Privacy Docs