59 Commits (672aa5aee78a44ecc08f0cff590819c4b8eff148)

Author SHA1 Message Date
Ben Brady 672aa5aee7 🔨 added default return to find_encoder 6 days ago
Ben Brady 9e5d6cfd2b 🔧 fixed acciental call of encoder 6 days ago
pre-commit-ci[bot] 273f6217e9 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 6 days ago
Ben Brady 303e1a5c38 🔨 removed useless types in ENCODERS_BY_TYPE 6 days ago
Ben Brady c60ec7e6b2 🔨 moved find encoder to seperate function 6 days ago
Ben Brady 4bc25a4149
🔨 added comments to type checks 6 days ago
Ben Brady 9266fe3357 🔨 moved encode_dict check allowed_keys to be first 2 weeks ago
Ben Brady f3a01033d6 🔨 changed encode_dict parameter typing 2 weeks ago
Ben Brady 028d681000 🔨 added back custom_encoder direct check 4 weeks ago
pre-commit-ci[bot] 21e96381cf 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 4 weeks ago
Ben Brady 8a9fd110f9 ⚒️ fixed lint errors 4 weeks ago
Ben Brady 1f86213ffc ⚒️ format script 4 weeks ago
pre-commit-ci[bot] dc9a03fc93 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 4 weeks ago
Ben Brady decaa3e7e3 🔨 inlined primative_types and iterable_types constants 4 weeks ago
Ben Brady b2111dbd4c 🔨 removed primative type skip 4 weeks ago
Ben Brady c5454038d5 🔨 tweaked encoder primative key skip to disallow subclasses 4 weeks ago
Ben Brady 39c51a38ec 🔨 refactored jsonable_encoder 4 weeks ago
arjwilliams 09e4859cab
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929) 1 year ago
Aleksei Kotenko 9c80842cea
♻️ Update mypy (#11049) 1 year ago
Charlie Marsh 5ccc869fee
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075) 1 year 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) 2 years ago
Marcelo Trylesinski 6c99e90a6b
🐛 Replace `MultHostUrl` to `AnyUrl` for compatibility with older versions of Pydantic v1 (#9852) 2 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 2 years ago
Carson Crane 1f21b16e03
Add support for `deque` objects and children in `jsonable_encoder` (#9433) 2 years ago
Sebastián Ramírez 7c5626bef7
⬆️ Upgrade Ruff (#5698) 3 years ago
Ofek Lev 4267bd1f4f
🔧 Update package metadata, drop support for Python 3.6, move build internals from Flit to Hatch (#5240) 3 years ago
DCsunset 3ec498af63
Add support in `jsonable_encoder` for include and exclude with dataclasses (#4923) 3 years ago
Luis R 22bed0008c
🐛 Fix `jsonable_encoder` for dataclasses with pydantic-compatible fields (#3607) 3 years ago
Guillermo Quintana Pelayo a64387c3fc
♻ Move internal variable for errors in `jsonable_encoder` to put related code closer (#4560) 3 years ago
Xavi Moreno eb2e183361
🐛 Fix `jsonable_encoder` using `include` and `exclude` parameters for non-Pydantic objects (#2606) 3 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) 4 years ago
Rubikoid 0e0931d308
🐛 Fix include/exclude for dicts in `jsonable_encoder` (#2016) 4 years ago
Sebastián Ramírez fdb6c9ccc5
Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 5 years ago
Sebastián Ramírez 0dfde6e284
🐛 Fix issues introduced by removing sqlalchemy safeguard in jsonable_encoder (#1987) 5 years ago
Sebastián Ramírez cdba8481c2
🔥 Remove old/unused parameter sqlalchemy_safe from jsonable_encoder (#1864) 5 years ago
Sebastián Ramírez e1758d107e
⬆ Require Pydantic > 1.0 (#1862) 5 years ago
Henry Betts 7fbe3737bc
🐛 Fix encoding a Pydantic model that inherits from another with json_encoders (#1769) 5 years ago
Nima Mashhadi M. Reza 3063ad83ec
Simplify and improve jsonable_encoder (#1754) 5 years ago
Yurii Karabas 55b9faeb48
♻ Simplify code syntax in several places (#1753) 5 years ago
Nima Mashhadi M. Reza 3223de5598
🎨 Add typing.Optional to variables that accept None as value (#1731) 5 years ago
Patrick Wang 8fb755703d
When using Pydantic models with __root__ use the internal value in jsonable_encoder (#1524) 5 years ago
voegtlel 3397d4d69a
Implement response_model_exclude_defaults and response_model_exclude_none (#1166) 5 years ago
Patrick McKenna 3c1803897f
🐛 Fix path encoding (#978) 6 years ago
Roald Storm b85b2e3942 Add support for subtypes of main types in jsonable_encoder 6 years ago
Sebastián Ramírez 83d04df8a6
🔊 Refactor logging (#781) 6 years ago
Stéphane Wirtel e04bae2286 🐛 Fix the usage of custom_encoder for jsonable_encoder #714 (#715) 6 years ago
dmontagu ab2b86fe2c Add support for Pydantic v1 and above 🎉 (#646) 6 years ago
dmontagu fc7d123347 ⬆️ Upgrade support to Pydantic version 0.32.2 (breaking change) (#463) 6 years ago
Sebastián Ramírez 7b63bc5551
Add include, exclude, and by_alias to path operation methods (#264) 6 years ago