fastapi/tests/test_tutorial
majiayu000 b8a617d62f Update ValidationError schema for Pydantic V2 compatibility
Add input, ctx, and url fields to the ValidationError OpenAPI definition
to accurately reflect the actual error structure returned by Pydantic V2.

Pydantic V2 validation errors include additional fields:
- input: The value that failed validation
- ctx: Additional context about the error (optional)
- url: Documentation URL for the error type (optional)

Fixes #10787
2025-12-14 17:02:12 +08:00
..
test_additional_responses Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_additional_status_codes Simplify tests for additional_status_codes (#13149) 2025-01-03 09:47:55 +00: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_tests Add support for Trio via AnyIO (#3372) 2021-10-06 17:32:11 +02:00
test_authentication_error_status_code 🐛 Use `401` status code in security classes when credentials are missing (#13786) 2025-11-24 20:03:06 +01:00
test_background_tasks Simplify tests for background_tasks (#13166) 2025-01-08 20:23:42 +01:00
test_behind_a_proxy 📝 Add documentation for Behind a Proxy - Proxy Forwarded Headers, using `--forwarded-allow-ips="*"` (#14028) 2025-08-31 21:34:08 +02:00
test_bigger_applications Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_body Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_body_fields Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_body_multiple_params Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_body_nested_models Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_body_updates Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_conditional_openapi Add support for Pydantic v2 (#9816) 2023-07-07 19:12:13 +02:00
test_configure_swagger_ui ⬆ Bump ruff to 0.9.4 (#13299) 2025-03-06 13:18:57 +01:00
test_cookie_param_models Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_cookie_params Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_cors ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_custom_docs_ui ⬆️ Update ReDoc to version 2.x (#9700) 2025-04-28 20:31:44 +02:00
test_custom_request_and_route 📝 Add variants for code examples in "Advanced User Guide" (#14413) 2025-12-10 09:55:32 +01:00
test_custom_response 📝 Update links to Pydantic docs to point to new website (#11328) 2024-03-21 20:42:11 -05:00
test_dataclasses Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_dependencies Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_events Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08: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 Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_extra_models Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_first_steps Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_generate_clients Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_handling_errors Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_header_param_models Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_header_params Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_metadata Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_openapi_callbacks Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_openapi_webhooks Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_path_operation_advanced_configurations Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_path_operation_configurations Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_path_params Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_pydantic_v1_in_v2 Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_query_param_models Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_query_params Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_query_params_str_validations Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_request_files Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_request_form_models Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_request_forms Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_request_forms_and_files Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08: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_directly Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_response_headers ⬆ Upgrade isort to version 5.x.x (#1670) 2020-07-09 20:06:12 +02:00
test_response_model Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_schema_extra_example Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_security Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_separate_openapi_schemas Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_settings 📝 Add variants for code examples in "Advanced User Guide" (#14413) 2025-12-10 09:55:32 +01:00
test_sql_databases Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_sub_applications Add support for OpenAPI 3.1.0 (#9770) 2023-06-30 20:25:16 +02:00
test_templates 📝 Update template docs with more info about `url_for` (#5937) 2024-01-11 23:25:37 +01:00
test_testing 📝 Update testing events documentation (#13259) 2025-08-31 10:29:21 +00:00
test_testing_dependencies Simplify tests for `dependency_testing` (#13223) 2025-02-15 14:37:48 +00:00
test_using_request_directly Update ValidationError schema for Pydantic V2 compatibility 2025-12-14 17:02:12 +08:00
test_websockets 📝 Add variants for code examples in "Advanced User Guide" (#14413) 2025-12-10 09:55:32 +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