fastapi/tests/test_tutorial
Sebastián Ramírez ea43f227e5
Add support for disabling the separation of input and output JSON Schemas in OpenAPI with Pydantic v2 (#10145)
* 📝 Add docs for Separate OpenAPI Schemas for Input and Output

* 🔧 Add new docs page to MkDocs config

*  Add separate_input_output_schemas parameter to FastAPI class

* 📝 Add source examples for separating OpenAPI schemas

*  Add tests for separated OpenAPI schemas

* 📝 Add source examples for Python 3.10, 3.9, and 3.7+

* 📝 Update docs for Separate OpenAPI Schemas with new multi-version examples

*  Add and update tests for different Python versions

*  Add tests for corner cases with separate_input_output_schemas

* 📝 Update tutorial to use Union instead of Optional

* 🐛 Fix type annotations

* 🐛 Fix correct import in test

* 💄 Add CSS to simulate browser windows for screenshots

*  Add playwright as a dev dependency to automate generating screenshots

* 🔨 Add Playwright scripts to generate screenshots for new docs

* 📝 Update docs, tweak text to match screenshots

* 🍱 Add screenshots for new docs
2023-08-25 21:10:22 +02:00
..
test_additional_responses Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_additional_status_codes 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_advanced_middleware ⬆ Upgrade Starlette to `0.21.0`, including the new [`TestClient` based on HTTPX](https://github.com/encode/starlette/releases/tag/0.21.0) (#5471) 2022-11-13 15:26:09 +01:00
test_async_sql_databases Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_async_tests Add support for Trio via AnyIO (#3372) 2021-10-06 17:32:11 +02:00
test_background_tasks 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_behind_a_proxy Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_bigger_applications Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_fields Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_multiple_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_nested_models Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_body_updates ♻️ Refactor tests for new Pydantic 2.2.1 (#10115) 2023-08-19 20:47:59 +02:00
test_conditional_openapi Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_configure_swagger_ui 📝 Add new docs section, How To - Recipes, move docs that don't have to be read by everyone to How To (#10114) 2023-08-19 21:54:04 +02:00
test_cookie_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_cors ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_custom_docs_ui 📝 Add new docs section, How To - Recipes, move docs that don't have to be read by everyone to How To (#10114) 2023-08-19 21:54:04 +02:00
test_custom_request_and_route Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_custom_response Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_dataclasses ♻️ Refactor tests for new Pydantic 2.2.1 (#10115) 2023-08-19 20:47:59 +02:00
test_dependencies Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_events Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_extending_openapi 📝 Add new docs section, How To - Recipes, move docs that don't have to be read by everyone to How To (#10114) 2023-08-19 21:54:04 +02:00
test_extra_data_types Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_extra_models Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2023-08-04 22:47:07 +02:00
test_first_steps Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_generate_clients Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_handling_errors Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_header_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_metadata Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_openapi_callbacks Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_openapi_webhooks Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_path_operation_advanced_configurations ♻️ Refactor tests for new Pydantic 2.2.1 (#10115) 2023-08-19 20:47:59 +02:00
test_path_operation_configurations ♻️ Refactor tests for new Pydantic 2.2.1 (#10115) 2023-08-19 20:47:59 +02:00
test_path_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_query_params Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_query_params_str_validations Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_request_files Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_request_forms Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_request_forms_and_files Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_response_change_status_code ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_response_cookies ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_response_headers ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_response_model Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2023-08-04 22:47:07 +02:00
test_schema_extra_example Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_security Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2023-08-04 22:47:07 +02:00
test_separate_openapi_schemas Add support for disabling the separation of input and output JSON Schemas in OpenAPI with Pydantic v2 (#10145) 2023-08-25 21:10:22 +02:00
test_settings Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_sql_databases Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_sub_applications Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_templates ✔ Improve support for tests in editor (#1699) 2020-07-10 11:08:19 +02:00
test_testing Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_testing_dependencies 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_websockets 📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268) 2023-03-18 13:29:59 +01:00
test_wsgi ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
__init__.py ♻️ Re-format tutorials, files names and tests 2018-12-18 21:59:06 +04:00