71 Commits (29ccbbc119657d66cd5282430587acf9c104f614)

Author SHA1 Message Date
Pedro Lobato 29ccbbc119 Tests for coverage and sqlalchemy 4 months ago
pre-commit-ci-lite[bot] e7c7b02a82
🎨 Auto format 4 months ago
Pedro Lobato a6203ca51b Fix tests, two encoders for one 4 months ago
pre-commit-ci-lite[bot] ef5884603e
🎨 Auto format 4 months ago
Pedro Lobato 74417cec5c For extra-types safety 4 months ago
pre-commit-ci-lite[bot] 3c1866474d
🎨 Auto format 4 months ago
Pedro Lobato cb3a8ca019 Final fix so tests works nicely 4 months ago
Pedro Lobato 81bec6a275 Coordinate is not a required type, making it optional 4 months ago
Pedro Lobato ad20536712 Update behaviour for named tuples 4 months ago
Pedro Lobato da3a758974 Revert import for color 4 months ago
Pedro Lobato 5c51d0be3c Update encoders.py 4 months ago
Pedro Lobato d23967f756 Attempt to use pydantic_extra_types and allow the deprecated v1 Color 4 months ago
pre-commit-ci-lite[bot] 4b23d86921
🎨 Auto format 4 months ago
Pedro Lobato 334bb918e4 Update encoders.py 4 months ago
Sebastián Ramírez 440bfd70a9
🎨 Tweak types for mypy (#14816) 4 months ago
Sebastián Ramírez e300630551
Drop support for `pydantic.v1` (#14609) 6 months ago
Sebastián Ramírez e2cd8a4201
Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
Sebastián Ramírez 1c4fc96c91
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
Kent Huang 20f40b29c0
🐛 Fix `TypeError` when encoding a decimal with a `NaN` or `Infinity` value (#12935) 7 months ago
Sebastián Ramírez d390f2e41f
Migrate internal reference documentation from `typing_extensions.Doc` to `annotated_doc.Doc` (#14222) 8 months ago
Sofie Van Landeghem d8c691f7f0
🐛 Fix internal Pydantic v1 compatibility (warnings) for Python 3.14 and Pydantic 2.12.1 (#14186) 8 months ago
Sebastián Ramírez d34918abf0
Add support for `from pydantic.v1 import BaseModel`, mixed Pydantic v1 and v2 models in the same app (#14168) 8 months ago
Salim Aboubacar 2dc769b121
🐛 Fix `jsonable_encoder` alters `json_encoders` of Pydantic v1 objects (#4972) 9 months ago
Tamir Duberstein a95e91e46e
⬆️ Update mypy to 1.14.1 (#12970) 9 months ago
Pedro Lobato fe7af11a78 Update encoders.py 12 months ago
Pedro Lobato 5961a8c61c Better jsonable encoder for iterables 1 year ago
arjwilliams 09e4859cab
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929) 2 years ago
Aleksei Kotenko 9c80842cea
♻️ Update mypy (#11049) 2 years ago
Charlie Marsh 5ccc869fee
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075) 2 years ago
Sebastián Ramírez 05ca41cfd1
Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 3 years ago
Marcelo Trylesinski 6c99e90a6b
🐛 Replace `MultHostUrl` to `AnyUrl` for compatibility with older versions of Pydantic v1 (#9852) 3 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 3 years ago
Carson Crane 1f21b16e03
Add support for `deque` objects and children in `jsonable_encoder` (#9433) 3 years ago
Sebastián Ramírez 7c5626bef7
⬆️ Upgrade Ruff (#5698) 4 years ago
Ofek Lev 4267bd1f4f
🔧 Update package metadata, drop support for Python 3.6, move build internals from Flit to Hatch (#5240) 4 years ago
DCsunset 3ec498af63
Add support in `jsonable_encoder` for include and exclude with dataclasses (#4923) 4 years ago
Luis R 22bed0008c
🐛 Fix `jsonable_encoder` for dataclasses with pydantic-compatible fields (#3607) 4 years ago
Guillermo Quintana Pelayo a64387c3fc
♻ Move internal variable for errors in `jsonable_encoder` to put related code closer (#4560) 4 years ago
Xavi Moreno eb2e183361
🐛 Fix `jsonable_encoder` using `include` and `exclude` parameters for non-Pydantic objects (#2606) 4 years ago
Sebastián Ramírez d4608a00cf
🐛 Prefer custom encoder over defaults if specified in `jsonable_encoder` (#4467) 4 years ago
Sebastián Ramírez 96fdfc53cc
Support `dataclasses` in responses (#3576) 5 years ago
Rubikoid 0e0931d308
🐛 Fix include/exclude for dicts in `jsonable_encoder` (#2016) 5 years ago
Sebastián Ramírez fdb6c9ccc5
Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 6 years ago
Sebastián Ramírez 0dfde6e284
🐛 Fix issues introduced by removing sqlalchemy safeguard in jsonable_encoder (#1987) 6 years ago
Sebastián Ramírez cdba8481c2
🔥 Remove old/unused parameter sqlalchemy_safe from jsonable_encoder (#1864) 6 years ago
Sebastián Ramírez e1758d107e
⬆ Require Pydantic > 1.0 (#1862) 6 years ago
Henry Betts 7fbe3737bc
🐛 Fix encoding a Pydantic model that inherits from another with json_encoders (#1769) 6 years ago
Nima Mashhadi M. Reza 3063ad83ec
Simplify and improve jsonable_encoder (#1754) 6 years ago
Yurii Karabas 55b9faeb48
♻ Simplify code syntax in several places (#1753) 6 years ago
Nima Mashhadi M. Reza 3223de5598
🎨 Add typing.Optional to variables that accept None as value (#1731) 6 years ago