You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Denis Laxalde
53ba155f6e
Accept a list of strings as value for JSON Schema "type"
According to the JSON Schema specification [1], the "type" keyword may
be an array of strings (with unique items). Previously, the Schema
definition did not allow this and would thus prevent users from using
custom JSON Schema definitions in their field such as `Annotated[...,
WithJsonSchema({"type": ["string", "null"]})` as an alternative to the
`anyOf` which is usually generated (a ValidationError was raised when
generated the OpenAPI definition).
We now accept this "type" variant, as illustrated in modified
test_custom_schema_fields.py.
[1]: https://json-schema.org/draft/2020-12/json-schema-validation#name-type
2 years ago
..
dependencies
🐛 Remove `Required` shadowing from fastapi using Pydantic v2 (#12197)
2 years ago
middleware
✨ Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831)
3 years ago
openapi
Accept a list of strings as value for JSON Schema "type"
2 years ago
security
📝 Fix minor typos (#12516)
2 years ago
__init__.py
🔖 Release version 0.115.3
2 years ago
__main__.py
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935)
2 years ago
_compat.py
🐛 Remove `Required` shadowing from fastapi using Pydantic v2 (#12197)
2 years ago
applications.py
🎨 Fix typing annotation for semi-internal `FastAPI.add_api_route()` (#10240)
2 years ago
background.py
♻️ Update mypy (#11049)
2 years ago
cli.py
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935)
2 years ago
concurrency.py
✨ Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831)
3 years ago
datastructures.py
♻️ Update mypy (#11049)
2 years ago
encoders.py
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929)
2 years ago
exception_handlers.py
✨ Add exception handler for `WebSocketRequestValidationError` (which also allows to override it) (#6030)
3 years ago
exceptions.py
♻️ Update mypy (#11049)
2 years ago
logger.py
🔊 Refactor logging (#781)
7 years ago
param_functions.py
📝 Fix minor typos (#12516)
2 years ago
params.py
✏️ Fix typo in `fastapi/params.py` (#12143)
2 years ago
py.typed
✨ add py.typed to ship typing information (#209)
7 years ago
requests.py
⬆ Require Pydantic > 1.0 (#1862)
6 years ago
responses.py
✨ Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392)
3 years ago
routing.py
🐛 Fix openapi generation with responses kwarg (#10895)
2 years ago
staticfiles.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
templating.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
testclient.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
types.py
🔥 Remove unused NoneType (#10774)
3 years ago
utils.py
♻️ Rename internal `create_response_field()` to `create_model_field()` as it's used for more than response models (#12103)
2 years ago
websockets.py
✨ Export `WebSocketState` in `fastapi.websockets` (#4376)
4 years ago