fastapi/docs_src/schema_extra_example
Sebastián Ramírez 1b714b3177
Add support for `openapi_examples` in all FastAPI parameters (#10152)
* ♻️ Refactor model for OpenAPI Examples to use a reusable TypedDict

*  Add support for openapi_examples in parameters

* 📝 Add new docs examples for new parameter openapi_examples

* 📝 Update docs for Schema Extra to include OpenAPI examples

*  Add tests for new source examples, for openapi_examples

*  Add tests for openapi_examples corner cases and all parameters

* 💡 Tweak and ignore type annotation checks for custom TypedDict
2023-08-26 20:03:13 +02:00
..
tutorial001.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
tutorial001_pv1.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
tutorial001_py310.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
tutorial001_py310_pv1.py Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
tutorial002.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
tutorial002_py310.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
tutorial003.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
tutorial003_an.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
tutorial003_an_py39.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
tutorial003_an_py310.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
tutorial003_py310.py Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
tutorial004.py 📝 Update source examples to use new JSON Schema examples field (#9776) 2023-07-01 18:43:29 +02:00
tutorial004_an.py 📝 Update source examples to use new JSON Schema examples field (#9776) 2023-07-01 18:43:29 +02:00
tutorial004_an_py39.py 📝 Update source examples to use new JSON Schema examples field (#9776) 2023-07-01 18:43:29 +02:00
tutorial004_an_py310.py 📝 Update source examples to use new JSON Schema examples field (#9776) 2023-07-01 18:43:29 +02:00
tutorial004_py310.py 📝 Update source examples to use new JSON Schema examples field (#9776) 2023-07-01 18:43:29 +02:00
tutorial005.py Add support for `openapi_examples` in all FastAPI parameters (#10152) 2023-08-26 20:03:13 +02:00
tutorial005_an.py Add support for `openapi_examples` in all FastAPI parameters (#10152) 2023-08-26 20:03:13 +02:00
tutorial005_an_py39.py Add support for `openapi_examples` in all FastAPI parameters (#10152) 2023-08-26 20:03:13 +02:00
tutorial005_an_py310.py Add support for `openapi_examples` in all FastAPI parameters (#10152) 2023-08-26 20:03:13 +02:00
tutorial005_py310.py Add support for `openapi_examples` in all FastAPI parameters (#10152) 2023-08-26 20:03:13 +02:00