fastapi/tests/test_tutorial
Sebastián Ramírez 7dad5a820b
Add support for OpenAPI 3.1.0 (#9770)
*  Update OpenAPI models for JSON Schema 2020-12 and OpenAPI 3.1.0

*  Add support for summary and webhooks

*  Update JSON Schema for UploadFiles

* ️ Revert making paths optional, to ensure always correctness

* ️ Keep UploadFile as format: binary for compatibility with the rest of Pydantic bytes fields in v1

*  Update version of OpenAPI generated to 3.1.0

*  Update the version of Swagger UI

* 📝 Update docs about extending OpenAPI

* 📝 Update docs and links to refer to OpenAPI 3.1.0

*  Update logic for handling webhooks

* ♻️ Update parameter functions and classes, deprecate example and make examples the main field

*  Update tests for OpenAPI 3.1.0

* 📝 Update examples for OpenAPI metadata

*  Add and update tests for OpenAPI metadata

* 📝 Add source example for webhooks

* 📝 Update docs for metadata

* 📝 Update docs for Schema extra

* 📝 Add docs for webhooks

* 🔧 Add webhooks docs to MkDocs

*  Update tests for extending OpenAPI

*  Add tests for webhooks

* ♻️ Refactor generation of OpenAPI and JSON Schema with params

* 📝 Update source examples for field examples

*  Update tests for examples

*  Make sure the minimum version of typing-extensions installed has deprecated() (already a dependency of Pydantic)

* ✏️ Fix typo in Webhooks example code

* 🔥 Remove commented out code of removed nullable field

* 🗑️ Add deprecation warnings for example argument

*  Update tests to check for deprecation warnings

*  Add test for webhooks with security schemes, for coverage

* 🍱 Update image for metadata, with new summary

* 🍱 Add docs image for Webhooks

* 📝 Update docs for webhooks, add docs UI image
2023-06-30 20:25:16 +02:00
..
test_additional_responses Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +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 OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +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 OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_bigger_applications Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_body Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_body_fields Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_body_multiple_params Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_body_nested_models Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_body_updates Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_conditional_openapi Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_cookie_params Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_cors ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_custom_request_and_route ⬆ 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_custom_response Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_dataclasses Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_dependencies Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_events Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_extending_openapi Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_extra_data_types Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_extra_models Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +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 OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_header_params Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +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 OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +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 Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_path_operation_configurations Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_path_params Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_query_params Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_query_params_str_validations Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_request_files Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_request_forms Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_request_forms_and_files Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +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 Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_schema_extra_example Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_security Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_settings Add the `docs_src` directory to test coverage and update tests (#1904) 2021-07-29 11:26:07 +02:00
test_sql_databases Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_sql_databases_peewee Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +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