From b8a617d62f635e409c22e6a5faca4057be622cc4 Mon Sep 17 00:00:00 2001 From: majiayu000 <1835304752@qq.com> Date: Sun, 14 Dec 2025 17:02:12 +0800 Subject: [PATCH 1/2] 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 --- fastapi/openapi/utils.py | 3 +++ tests/test_additional_properties.py | 3 +++ tests/test_additional_properties_bool.py | 3 +++ ...onal_responses_custom_model_in_callback.py | 3 +++ ...ional_responses_default_validationerror.py | 3 +++ tests/test_annotated.py | 3 +++ tests/test_application.py | 3 +++ tests/test_compat_params_v1.py | 3 +++ tests/test_dependency_duplicates.py | 3 +++ tests/test_enforce_once_required_parameter.py | 3 +++ tests/test_extra_routes.py | 3 +++ .../test_filter_pydantic_sub_model_pv1.py | 3 +++ tests/test_filter_pydantic_sub_model_pv2.py | 3 +++ tests/test_forms_single_param.py | 3 +++ tests/test_generate_unique_id_function.py | 21 +++++++++++++++++++ ...t_get_model_definitions_formfeed_escape.py | 3 +++ tests/test_get_request_body.py | 3 +++ .../test_include_router_defaults_overrides.py | 3 +++ tests/test_infer_param_optionality.py | 3 +++ .../test_modules_same_name_body/test_main.py | 3 +++ tests/test_multi_body_errors.py | 3 +++ tests/test_multi_query_errors.py | 3 +++ tests/test_no_schema_split.py | 3 +++ tests/test_openapi_examples.py | 3 +++ .../test_openapi_query_parameter_extension.py | 3 +++ ...t_openapi_separate_input_output_schemas.py | 6 ++++++ tests/test_param_in_path_and_dependency.py | 3 +++ tests/test_param_include_in_schema.py | 3 +++ tests/test_put_no_body.py | 3 +++ tests/test_pydantic_v1_v2_01.py | 3 +++ tests/test_pydantic_v1_v2_list.py | 3 +++ tests/test_pydantic_v1_v2_mixed.py | 3 +++ .../test_multifile.py | 6 ++++++ tests/test_pydantic_v1_v2_noneable.py | 3 +++ tests/test_regex_deprecated_body.py | 3 +++ tests/test_regex_deprecated_params.py | 3 +++ tests/test_repeated_dependency_schema.py | 3 +++ tests/test_repeated_parameter_alias.py | 3 +++ tests/test_reponse_set_reponse_code_empty.py | 3 +++ ...test_request_body_parameters_media_type.py | 3 +++ tests/test_schema_extra_examples.py | 3 +++ tests/test_security_oauth2.py | 3 +++ tests/test_security_oauth2_optional.py | 3 +++ ...st_security_oauth2_optional_description.py | 3 +++ tests/test_starlette_exception.py | 3 +++ tests/test_sub_callbacks.py | 3 +++ tests/test_tuples.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial002.py | 3 +++ .../test_tutorial003.py | 3 +++ .../test_tutorial004.py | 3 +++ .../test_bigger_applications/test_main.py | 3 +++ .../test_body/test_tutorial001.py | 3 +++ .../test_body_fields/test_tutorial001.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial003.py | 3 +++ .../test_tutorial009.py | 3 +++ .../test_body_updates/test_tutorial001.py | 6 ++++++ .../test_tutorial001.py | 3 +++ .../test_tutorial002.py | 3 +++ .../test_cookie_params/test_tutorial001.py | 3 +++ .../test_dataclasses/test_tutorial001.py | 3 +++ .../test_dataclasses/test_tutorial003.py | 6 ++++++ .../test_dependencies/test_tutorial001.py | 3 +++ .../test_dependencies/test_tutorial004.py | 3 +++ .../test_dependencies/test_tutorial006.py | 3 +++ .../test_dependencies/test_tutorial012.py | 3 +++ .../test_events/test_tutorial001.py | 3 +++ .../test_events/test_tutorial003.py | 3 +++ .../test_extra_data_types/test_tutorial001.py | 3 +++ .../test_extra_models/test_tutorial003.py | 3 +++ .../test_generate_clients/test_tutorial003.py | 3 +++ .../test_handling_errors/test_tutorial001.py | 3 +++ .../test_handling_errors/test_tutorial002.py | 3 +++ .../test_handling_errors/test_tutorial003.py | 3 +++ .../test_handling_errors/test_tutorial004.py | 3 +++ .../test_handling_errors/test_tutorial005.py | 3 +++ .../test_handling_errors/test_tutorial006.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial002.py | 3 +++ .../test_tutorial003.py | 3 +++ .../test_header_params/test_tutorial001.py | 3 +++ .../test_header_params/test_tutorial002.py | 3 +++ .../test_header_params/test_tutorial003.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_openapi_webhooks/test_tutorial001.py | 3 +++ .../test_tutorial004.py | 6 ++++++ .../test_tutorial005.py | 6 ++++++ .../test_path_params/test_tutorial004.py | 3 +++ .../test_path_params/test_tutorial005.py | 3 +++ .../test_tutorial002.py | 3 +++ .../test_tutorial003.py | 3 +++ .../test_tutorial004.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial002.py | 3 +++ .../test_query_params/test_tutorial005.py | 3 +++ .../test_query_params/test_tutorial006.py | 3 +++ .../test_tutorial010.py | 3 +++ .../test_tutorial011.py | 3 +++ .../test_tutorial012.py | 3 +++ .../test_tutorial013.py | 3 +++ .../test_tutorial014.py | 3 +++ .../test_tutorial015.py | 3 +++ .../test_request_files/test_tutorial001.py | 3 +++ .../test_request_files/test_tutorial001_02.py | 3 +++ .../test_request_files/test_tutorial001_03.py | 3 +++ .../test_request_files/test_tutorial002.py | 3 +++ .../test_request_files/test_tutorial003.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial002.py | 3 +++ .../test_tutorial002_pv1.py | 3 +++ .../test_request_forms/test_tutorial001.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial001.py | 6 ++++++ .../test_response_model/test_tutorial003.py | 3 +++ .../test_tutorial003_01.py | 3 +++ .../test_tutorial003_02.py | 3 +++ .../test_tutorial003_05.py | 3 +++ .../test_response_model/test_tutorial004.py | 3 +++ .../test_response_model/test_tutorial005.py | 3 +++ .../test_response_model/test_tutorial006.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial001_pv1.py | 3 +++ .../test_tutorial004.py | 3 +++ .../test_tutorial005.py | 3 +++ .../test_security/test_tutorial003.py | 3 +++ .../test_security/test_tutorial005.py | 3 +++ .../test_tutorial001.py | 3 +++ .../test_tutorial002.py | 3 +++ .../test_sql_databases/test_tutorial001.py | 3 +++ .../test_sql_databases/test_tutorial002.py | 3 +++ .../test_tutorial001.py | 3 +++ tests/test_union_body.py | 3 +++ tests/test_union_body_discriminator.py | 3 +++ ...test_union_body_discriminator_annotated.py | 3 +++ tests/test_union_forms.py | 3 +++ tests/test_union_inherited_body.py | 3 +++ tests/test_webhooks_security.py | 3 +++ 138 files changed, 453 insertions(+) diff --git a/fastapi/openapi/utils.py b/fastapi/openapi/utils.py index 9fe2044f2..293bef8c6 100644 --- a/fastapi/openapi/utils.py +++ b/fastapi/openapi/utils.py @@ -50,6 +50,9 @@ validation_error_definition = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], } diff --git a/tests/test_additional_properties.py b/tests/test_additional_properties.py index be14d10ed..2fdfdeaba 100644 --- a/tests/test_additional_properties.py +++ b/tests/test_additional_properties.py @@ -91,6 +91,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_additional_properties_bool.py b/tests/test_additional_properties_bool.py index de59e48ce..391b38c4a 100644 --- a/tests/test_additional_properties_bool.py +++ b/tests/test_additional_properties_bool.py @@ -123,6 +123,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_additional_responses_custom_model_in_callback.py b/tests/test_additional_responses_custom_model_in_callback.py index 2ad575455..e11e8bec8 100644 --- a/tests/test_additional_responses_custom_model_in_callback.py +++ b/tests/test_additional_responses_custom_model_in_callback.py @@ -145,6 +145,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_additional_responses_default_validationerror.py b/tests/test_additional_responses_default_validationerror.py index 153f04f57..d4ab2d2e5 100644 --- a/tests/test_additional_responses_default_validationerror.py +++ b/tests/test_additional_responses_default_validationerror.py @@ -66,6 +66,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_annotated.py b/tests/test_annotated.py index 473d33e52..ead3297bf 100644 --- a/tests/test_annotated.py +++ b/tests/test_annotated.py @@ -305,6 +305,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_application.py b/tests/test_application.py index 8f1b0a18d..14aa631e2 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -1269,6 +1269,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_compat_params_v1.py b/tests/test_compat_params_v1.py index 7064761cb..24c4dd214 100644 --- a/tests/test_compat_params_v1.py +++ b/tests/test_compat_params_v1.py @@ -1111,6 +1111,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_dependency_duplicates.py b/tests/test_dependency_duplicates.py index 8e8d07c2d..51faa757c 100644 --- a/tests/test_dependency_duplicates.py +++ b/tests/test_dependency_duplicates.py @@ -239,6 +239,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_enforce_once_required_parameter.py b/tests/test_enforce_once_required_parameter.py index 2e5ac6c06..9cd53f8fa 100644 --- a/tests/test_enforce_once_required_parameter.py +++ b/tests/test_enforce_once_required_parameter.py @@ -49,6 +49,9 @@ expected_schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_extra_routes.py b/tests/test_extra_routes.py index bd16fe925..912c8ce80 100644 --- a/tests/test_extra_routes.py +++ b/tests/test_extra_routes.py @@ -352,6 +352,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py b/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py index 48732dbf0..abe6cf8a0 100644 --- a/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py +++ b/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py @@ -123,6 +123,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_filter_pydantic_sub_model_pv2.py b/tests/test_filter_pydantic_sub_model_pv2.py index 2e2c26ddc..816802d75 100644 --- a/tests/test_filter_pydantic_sub_model_pv2.py +++ b/tests/test_filter_pydantic_sub_model_pv2.py @@ -177,6 +177,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_forms_single_param.py b/tests/test_forms_single_param.py index 3bb951441..2de37052c 100644 --- a/tests/test_forms_single_param.py +++ b/tests/test_forms_single_param.py @@ -89,6 +89,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_generate_unique_id_function.py b/tests/test_generate_unique_id_function.py index 5aeec6636..aa053047b 100644 --- a/tests/test_generate_unique_id_function.py +++ b/tests/test_generate_unique_id_function.py @@ -223,6 +223,9 @@ def test_top_level_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } @@ -424,6 +427,9 @@ def test_router_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } @@ -625,6 +631,9 @@ def test_router_include_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } @@ -899,6 +908,9 @@ def test_subrouter_top_level_include_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } @@ -1103,6 +1115,9 @@ def test_router_path_operation_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } @@ -1311,6 +1326,9 @@ def test_app_path_operation_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } @@ -1597,6 +1615,9 @@ def test_callback_override_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_get_model_definitions_formfeed_escape.py b/tests/test_get_model_definitions_formfeed_escape.py index 6601585ef..bddfae7cd 100644 --- a/tests/test_get_model_definitions_formfeed_escape.py +++ b/tests/test_get_model_definitions_formfeed_escape.py @@ -81,6 +81,9 @@ openapi_schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_get_request_body.py b/tests/test_get_request_body.py index cc567b88f..62f8a37a0 100644 --- a/tests/test_get_request_body.py +++ b/tests/test_get_request_body.py @@ -100,6 +100,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_include_router_defaults_overrides.py b/tests/test_include_router_defaults_overrides.py index 33baa25e6..8af56a564 100644 --- a/tests/test_include_router_defaults_overrides.py +++ b/tests/test_include_router_defaults_overrides.py @@ -7290,6 +7290,9 @@ def test_openapi(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_infer_param_optionality.py b/tests/test_infer_param_optionality.py index e3d57bb42..67108aac8 100644 --- a/tests/test_infer_param_optionality.py +++ b/tests/test_infer_param_optionality.py @@ -350,6 +350,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_modules_same_name_body/test_main.py b/tests/test_modules_same_name_body/test_main.py index 263d87df2..6f5e11aeb 100644 --- a/tests/test_modules_same_name_body/test_main.py +++ b/tests/test_modules_same_name_body/test_main.py @@ -131,6 +131,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_multi_body_errors.py b/tests/test_multi_body_errors.py index 33304827a..8caa3d155 100644 --- a/tests/test_multi_body_errors.py +++ b/tests/test_multi_body_errors.py @@ -221,6 +221,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_multi_query_errors.py b/tests/test_multi_query_errors.py index 8162d986c..85ec13690 100644 --- a/tests/test_multi_query_errors.py +++ b/tests/test_multi_query_errors.py @@ -118,6 +118,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_no_schema_split.py b/tests/test_no_schema_split.py index b0b5958c1..0de7719cb 100644 --- a/tests/test_no_schema_split.py +++ b/tests/test_no_schema_split.py @@ -192,6 +192,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_openapi_examples.py b/tests/test_openapi_examples.py index b3f83ae23..26357d668 100644 --- a/tests/test_openapi_examples.py +++ b/tests/test_openapi_examples.py @@ -461,6 +461,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_openapi_query_parameter_extension.py b/tests/test_openapi_query_parameter_extension.py index dc7147c71..02e41bde3 100644 --- a/tests/test_openapi_query_parameter_extension.py +++ b/tests/test_openapi_query_parameter_extension.py @@ -130,6 +130,9 @@ def test_openapi(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_openapi_separate_input_output_schemas.py b/tests/test_openapi_separate_input_output_schemas.py index c9a05418b..de1a608a9 100644 --- a/tests/test_openapi_separate_input_output_schemas.py +++ b/tests/test_openapi_separate_input_output_schemas.py @@ -438,6 +438,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], @@ -670,6 +673,9 @@ def test_openapi_schema_no_separate(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_param_in_path_and_dependency.py b/tests/test_param_in_path_and_dependency.py index 08eb0f40f..f2e0b4497 100644 --- a/tests/test_param_in_path_and_dependency.py +++ b/tests/test_param_in_path_and_dependency.py @@ -86,6 +86,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_param_include_in_schema.py b/tests/test_param_include_in_schema.py index f461947c9..0560583cc 100644 --- a/tests/test_param_include_in_schema.py +++ b/tests/test_param_include_in_schema.py @@ -151,6 +151,9 @@ openapi_schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_put_no_body.py b/tests/test_put_no_body.py index 8f4c82532..e72a6f214 100644 --- a/tests/test_put_no_body.py +++ b/tests/test_put_no_body.py @@ -78,6 +78,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_pydantic_v1_v2_01.py b/tests/test_pydantic_v1_v2_01.py index 769e5fab6..7b51c6371 100644 --- a/tests/test_pydantic_v1_v2_01.py +++ b/tests/test_pydantic_v1_v2_01.py @@ -464,6 +464,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_list.py b/tests/test_pydantic_v1_v2_list.py index 64f3dd344..0d99813e9 100644 --- a/tests/test_pydantic_v1_v2_list.py +++ b/tests/test_pydantic_v1_v2_list.py @@ -690,6 +690,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_mixed.py b/tests/test_pydantic_v1_v2_mixed.py index 54d408827..107fde138 100644 --- a/tests/test_pydantic_v1_v2_mixed.py +++ b/tests/test_pydantic_v1_v2_mixed.py @@ -1488,6 +1488,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_multifile/test_multifile.py b/tests/test_pydantic_v1_v2_multifile/test_multifile.py index e66d102fb..f943c4c3f 100644 --- a/tests/test_pydantic_v1_v2_multifile/test_multifile.py +++ b/tests/test_pydantic_v1_v2_multifile/test_multifile.py @@ -831,6 +831,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], @@ -1042,6 +1045,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_noneable.py b/tests/test_pydantic_v1_v2_noneable.py index d2d6f6635..8d9d65e55 100644 --- a/tests/test_pydantic_v1_v2_noneable.py +++ b/tests/test_pydantic_v1_v2_noneable.py @@ -755,6 +755,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_regex_deprecated_body.py b/tests/test_regex_deprecated_body.py index 74654ff3c..9f7389d15 100644 --- a/tests/test_regex_deprecated_body.py +++ b/tests/test_regex_deprecated_body.py @@ -170,6 +170,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_regex_deprecated_params.py b/tests/test_regex_deprecated_params.py index 2ce64c686..4684259a5 100644 --- a/tests/test_regex_deprecated_params.py +++ b/tests/test_regex_deprecated_params.py @@ -153,6 +153,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_repeated_dependency_schema.py b/tests/test_repeated_dependency_schema.py index c21829bd9..6879aa2b5 100644 --- a/tests/test_repeated_dependency_schema.py +++ b/tests/test_repeated_dependency_schema.py @@ -42,6 +42,9 @@ schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_repeated_parameter_alias.py b/tests/test_repeated_parameter_alias.py index fd72eaab2..d1cdd17c5 100644 --- a/tests/test_repeated_parameter_alias.py +++ b/tests/test_repeated_parameter_alias.py @@ -50,6 +50,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_reponse_set_reponse_code_empty.py b/tests/test_reponse_set_reponse_code_empty.py index bf3aa758c..041afa6d2 100644 --- a/tests/test_reponse_set_reponse_code_empty.py +++ b/tests/test_reponse_set_reponse_code_empty.py @@ -90,6 +90,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_request_body_parameters_media_type.py b/tests/test_request_body_parameters_media_type.py index 8c72fee54..7938ee2fe 100644 --- a/tests/test_request_body_parameters_media_type.py +++ b/tests/test_request_body_parameters_media_type.py @@ -170,6 +170,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_schema_extra_examples.py b/tests/test_schema_extra_examples.py index b313f47e9..0ac12e105 100644 --- a/tests/test_schema_extra_examples.py +++ b/tests/test_schema_extra_examples.py @@ -959,6 +959,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_security_oauth2.py b/tests/test_security_oauth2.py index 804e4152d..7da407e4d 100644 --- a/tests/test_security_oauth2.py +++ b/tests/test_security_oauth2.py @@ -300,6 +300,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_security_oauth2_optional.py b/tests/test_security_oauth2_optional.py index 046ac5763..8a6a6d498 100644 --- a/tests/test_security_oauth2_optional.py +++ b/tests/test_security_oauth2_optional.py @@ -303,6 +303,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_security_oauth2_optional_description.py b/tests/test_security_oauth2_optional_description.py index 629cddca2..59dec869b 100644 --- a/tests/test_security_oauth2_optional_description.py +++ b/tests/test_security_oauth2_optional_description.py @@ -304,6 +304,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_starlette_exception.py b/tests/test_starlette_exception.py index 229fe8016..e93586492 100644 --- a/tests/test_starlette_exception.py +++ b/tests/test_starlette_exception.py @@ -184,6 +184,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_sub_callbacks.py b/tests/test_sub_callbacks.py index ed7f4efe8..f27721493 100644 --- a/tests/test_sub_callbacks.py +++ b/tests/test_sub_callbacks.py @@ -305,6 +305,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tuples.py b/tests/test_tuples.py index ca33d2580..476d03cd3 100644 --- a/tests/test_tuples.py +++ b/tests/test_tuples.py @@ -303,6 +303,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial001.py b/tests/test_tutorial/test_additional_responses/test_tutorial001.py index 3afeaff84..2d571f7a3 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial001.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial001.py @@ -98,6 +98,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial002.py b/tests/test_tutorial/test_additional_responses/test_tutorial002.py index 91d6ff101..3ccfaa3e2 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial002.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial002.py @@ -122,6 +122,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial003.py b/tests/test_tutorial/test_additional_responses/test_tutorial003.py index bd34d2938..0126903e8 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial003.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial003.py @@ -102,6 +102,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial004.py b/tests/test_tutorial/test_additional_responses/test_tutorial004.py index 2d9491467..055d45956 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial004.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial004.py @@ -125,6 +125,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_bigger_applications/test_main.py b/tests/test_tutorial/test_bigger_applications/test_main.py index fe40fad7d..2d5278e40 100644 --- a/tests/test_tutorial/test_bigger_applications/test_main.py +++ b/tests/test_tutorial/test_bigger_applications/test_main.py @@ -719,6 +719,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_body/test_tutorial001.py b/tests/test_tutorial/test_body/test_tutorial001.py index f8b5aee8d..1badc5740 100644 --- a/tests/test_tutorial/test_body/test_tutorial001.py +++ b/tests/test_tutorial/test_body/test_tutorial001.py @@ -471,6 +471,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_fields/test_tutorial001.py b/tests/test_tutorial/test_body_fields/test_tutorial001.py index fb68f2868..7d239bcd5 100644 --- a/tests/test_tutorial/test_body_fields/test_tutorial001.py +++ b/tests/test_tutorial/test_body_fields/test_tutorial001.py @@ -198,6 +198,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py b/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py index 142405595..4efcaa746 100644 --- a/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py +++ b/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py @@ -201,6 +201,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py b/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py index d18ceae48..b31678561 100644 --- a/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py +++ b/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py @@ -268,6 +268,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_nested_models/test_tutorial009.py b/tests/test_tutorial/test_body_nested_models/test_tutorial009.py index 38ba3c887..822d5e412 100644 --- a/tests/test_tutorial/test_body_nested_models/test_tutorial009.py +++ b/tests/test_tutorial/test_body_nested_models/test_tutorial009.py @@ -115,6 +115,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_updates/test_tutorial001.py b/tests/test_tutorial/test_body_updates/test_tutorial001.py index f874dc9bd..9c307f2af 100644 --- a/tests/test_tutorial/test_body_updates/test_tutorial001.py +++ b/tests/test_tutorial/test_body_updates/test_tutorial001.py @@ -170,6 +170,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { @@ -304,6 +307,9 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py b/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py index 60643185a..fbd776c5c 100644 --- a/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py +++ b/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py @@ -194,6 +194,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py b/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py index cef6f6630..314fe2e0e 100644 --- a/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py +++ b/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py @@ -232,6 +232,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_cookie_params/test_tutorial001.py b/tests/test_tutorial/test_cookie_params/test_tutorial001.py index 90e8dfd37..8d5d396d5 100644 --- a/tests/test_tutorial/test_cookie_params/test_tutorial001.py +++ b/tests/test_tutorial/test_cookie_params/test_tutorial001.py @@ -109,6 +109,9 @@ def test_openapi_schema(mod: ModuleType): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dataclasses/test_tutorial001.py b/tests/test_tutorial/test_dataclasses/test_tutorial001.py index b36dee768..0b9049067 100644 --- a/tests/test_tutorial/test_dataclasses/test_tutorial001.py +++ b/tests/test_tutorial/test_dataclasses/test_tutorial001.py @@ -155,6 +155,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_dataclasses/test_tutorial003.py b/tests/test_tutorial/test_dataclasses/test_tutorial003.py index 5728d2b6b..9a3d74431 100644 --- a/tests/test_tutorial/test_dataclasses/test_tutorial003.py +++ b/tests/test_tutorial/test_dataclasses/test_tutorial003.py @@ -197,6 +197,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } @@ -331,6 +334,9 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_dependencies/test_tutorial001.py b/tests/test_tutorial/test_dependencies/test_tutorial001.py index ed9944912..cee5f3f05 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial001.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial001.py @@ -182,6 +182,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dependencies/test_tutorial004.py b/tests/test_tutorial/test_dependencies/test_tutorial004.py index 8221c83d4..166e111d2 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial004.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial004.py @@ -161,6 +161,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dependencies/test_tutorial006.py b/tests/test_tutorial/test_dependencies/test_tutorial006.py index 4530762f7..4888ab76c 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial006.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial006.py @@ -147,6 +147,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dependencies/test_tutorial012.py b/tests/test_tutorial/test_dependencies/test_tutorial012.py index 0af17e9bc..5328be0ce 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial012.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial012.py @@ -259,6 +259,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_events/test_tutorial001.py b/tests/test_tutorial/test_events/test_tutorial001.py index f65b92d12..db90df9b4 100644 --- a/tests/test_tutorial/test_events/test_tutorial001.py +++ b/tests/test_tutorial/test_events/test_tutorial001.py @@ -72,6 +72,9 @@ def test_openapi_schema(app: FastAPI): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_events/test_tutorial003.py b/tests/test_tutorial/test_events/test_tutorial003.py index 0ad1a1f8b..841a3006f 100644 --- a/tests/test_tutorial/test_events/test_tutorial003.py +++ b/tests/test_tutorial/test_events/test_tutorial003.py @@ -85,6 +85,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_extra_data_types/test_tutorial001.py b/tests/test_tutorial/test_extra_data_types/test_tutorial001.py index b816c9cab..5cf1b78d6 100644 --- a/tests/test_tutorial/test_extra_data_types/test_tutorial001.py +++ b/tests/test_tutorial/test_extra_data_types/test_tutorial001.py @@ -175,6 +175,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_extra_models/test_tutorial003.py b/tests/test_tutorial/test_extra_models/test_tutorial003.py index 73aa29903..6734489d3 100644 --- a/tests/test_tutorial/test_extra_models/test_tutorial003.py +++ b/tests/test_tutorial/test_extra_models/test_tutorial003.py @@ -131,6 +131,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_generate_clients/test_tutorial003.py b/tests/test_tutorial/test_generate_clients/test_tutorial003.py index 1cd9678a1..05d684d24 100644 --- a/tests/test_tutorial/test_generate_clients/test_tutorial003.py +++ b/tests/test_tutorial/test_generate_clients/test_tutorial003.py @@ -180,6 +180,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial001.py b/tests/test_tutorial/test_handling_errors/test_tutorial001.py index 8809c135b..4af43d1d2 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial001.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial001.py @@ -72,6 +72,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial002.py b/tests/test_tutorial/test_handling_errors/test_tutorial002.py index efd86ebde..50e002d79 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial002.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial002.py @@ -72,6 +72,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial003.py b/tests/test_tutorial/test_handling_errors/test_tutorial003.py index 4763f68f3..eef8157f5 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial003.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial003.py @@ -73,6 +73,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial004.py b/tests/test_tutorial/test_handling_errors/test_tutorial004.py index c04bf3724..929b600df 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial004.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial004.py @@ -78,6 +78,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial005.py b/tests/test_tutorial/test_handling_errors/test_tutorial005.py index 581b2e4c7..9b05e6189 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial005.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial005.py @@ -117,6 +117,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial006.py b/tests/test_tutorial/test_handling_errors/test_tutorial006.py index 7d2f553aa..d561ce7eb 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial006.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial006.py @@ -100,6 +100,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial001.py b/tests/test_tutorial/test_header_param_models/test_tutorial001.py index bc876897b..870e511bf 100644 --- a/tests/test_tutorial/test_header_param_models/test_tutorial001.py +++ b/tests/test_tutorial/test_header_param_models/test_tutorial001.py @@ -227,6 +227,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial002.py b/tests/test_tutorial/test_header_param_models/test_tutorial002.py index 0615521c4..951a2aee5 100644 --- a/tests/test_tutorial/test_header_param_models/test_tutorial002.py +++ b/tests/test_tutorial/test_header_param_models/test_tutorial002.py @@ -238,6 +238,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial003.py b/tests/test_tutorial/test_header_param_models/test_tutorial003.py index 554a48d2e..c5ea851f5 100644 --- a/tests/test_tutorial/test_header_param_models/test_tutorial003.py +++ b/tests/test_tutorial/test_header_param_models/test_tutorial003.py @@ -274,6 +274,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_header_params/test_tutorial001.py b/tests/test_tutorial/test_header_params/test_tutorial001.py index d6f7fe618..ca0887607 100644 --- a/tests/test_tutorial/test_header_params/test_tutorial001.py +++ b/tests/test_tutorial/test_header_params/test_tutorial001.py @@ -100,6 +100,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_header_params/test_tutorial002.py b/tests/test_tutorial/test_header_params/test_tutorial002.py index 7158f8651..355c9c514 100644 --- a/tests/test_tutorial/test_header_params/test_tutorial002.py +++ b/tests/test_tutorial/test_header_params/test_tutorial002.py @@ -112,6 +112,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_header_params/test_tutorial003.py b/tests/test_tutorial/test_header_params/test_tutorial003.py index 473b96123..4a702c691 100644 --- a/tests/test_tutorial/test_header_params/test_tutorial003.py +++ b/tests/test_tutorial/test_header_params/test_tutorial003.py @@ -124,6 +124,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py b/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py index 2df2b9889..6650cd63c 100644 --- a/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py +++ b/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py @@ -214,6 +214,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py b/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py index dc67ec401..9bf84c218 100644 --- a/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py +++ b/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py @@ -107,6 +107,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py b/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py index da5782d18..33dc56c57 100644 --- a/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py +++ b/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py @@ -120,6 +120,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { @@ -217,6 +220,9 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py b/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py index 0742f5d0e..feeaaca8e 100644 --- a/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py +++ b/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py @@ -119,6 +119,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { @@ -216,6 +219,9 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_path_params/test_tutorial004.py b/tests/test_tutorial/test_path_params/test_tutorial004.py index acbeaca76..a70516c30 100644 --- a/tests/test_tutorial/test_path_params/test_tutorial004.py +++ b/tests/test_tutorial/test_path_params/test_tutorial004.py @@ -73,6 +73,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_path_params/test_tutorial005.py b/tests/test_tutorial/test_path_params/test_tutorial005.py index 2e4b0146b..f881cc0da 100644 --- a/tests/test_tutorial/test_path_params/test_tutorial005.py +++ b/tests/test_tutorial/test_path_params/test_tutorial005.py @@ -136,6 +136,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py index a402c663d..80df8cee9 100644 --- a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py +++ b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py @@ -129,6 +129,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py index 03155c924..83909e04a 100644 --- a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py +++ b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py @@ -143,6 +143,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py index d2e204dda..fb20c3c40 100644 --- a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py +++ b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py @@ -142,6 +142,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_query_param_models/test_tutorial001.py b/tests/test_tutorial/test_query_param_models/test_tutorial001.py index 5b7bc7b42..5e773e45d 100644 --- a/tests/test_tutorial/test_query_param_models/test_tutorial001.py +++ b/tests/test_tutorial/test_query_param_models/test_tutorial001.py @@ -249,6 +249,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_query_param_models/test_tutorial002.py b/tests/test_tutorial/test_query_param_models/test_tutorial002.py index 4432c9d8a..ba98d374b 100644 --- a/tests/test_tutorial/test_query_param_models/test_tutorial002.py +++ b/tests/test_tutorial/test_query_param_models/test_tutorial002.py @@ -271,6 +271,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_query_params/test_tutorial005.py b/tests/test_tutorial/test_query_params/test_tutorial005.py index 05ae85b45..b72fd72e0 100644 --- a/tests/test_tutorial/test_query_params/test_tutorial005.py +++ b/tests/test_tutorial/test_query_params/test_tutorial005.py @@ -100,6 +100,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params/test_tutorial006.py b/tests/test_tutorial/test_query_params/test_tutorial006.py index a0b5ef494..61e5a9b61 100644 --- a/tests/test_tutorial/test_query_params/test_tutorial006.py +++ b/tests/test_tutorial/test_query_params/test_tutorial006.py @@ -167,6 +167,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py index e08e16963..3f77cec7c 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py @@ -165,6 +165,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py index f4da25752..0d448c6e3 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py @@ -111,6 +111,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py index 549a90519..d1230bd1c 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py @@ -97,6 +97,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py index f2f5f7a85..cfcf89af2 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py @@ -96,6 +96,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py index edd40bb1a..aa5e01b3a 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py @@ -94,6 +94,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py index ae1c40286..e3f970426 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py @@ -132,6 +132,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_request_files/test_tutorial001.py b/tests/test_tutorial/test_request_files/test_tutorial001.py index b06919961..ca4bde594 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial001.py +++ b/tests/test_tutorial/test_request_files/test_tutorial001.py @@ -213,6 +213,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_files/test_tutorial001_02.py b/tests/test_tutorial/test_request_files/test_tutorial001_02.py index 9075a1756..bbe037624 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial001_02.py +++ b/tests/test_tutorial/test_request_files/test_tutorial001_02.py @@ -218,6 +218,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_request_files/test_tutorial001_03.py b/tests/test_tutorial/test_request_files/test_tutorial001_03.py index 9fbe2166c..bbdb2e7a2 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial001_03.py +++ b/tests/test_tutorial/test_request_files/test_tutorial001_03.py @@ -166,6 +166,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_request_files/test_tutorial002.py b/tests/test_tutorial/test_request_files/test_tutorial002.py index 446a87657..e234f5fa7 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial002.py +++ b/tests/test_tutorial/test_request_files/test_tutorial002.py @@ -254,6 +254,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_files/test_tutorial003.py b/tests/test_tutorial/test_request_files/test_tutorial003.py index 8534ba3e9..a27eae4f9 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial003.py +++ b/tests/test_tutorial/test_request_files/test_tutorial003.py @@ -210,6 +210,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_request_form_models/test_tutorial001.py b/tests/test_tutorial/test_request_form_models/test_tutorial001.py index 1ca3c96d3..a2928d75c 100644 --- a/tests/test_tutorial/test_request_form_models/test_tutorial001.py +++ b/tests/test_tutorial/test_request_form_models/test_tutorial001.py @@ -225,6 +225,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_form_models/test_tutorial002.py b/tests/test_tutorial/test_request_form_models/test_tutorial002.py index b3f6be63a..17284b588 100644 --- a/tests/test_tutorial/test_request_form_models/test_tutorial002.py +++ b/tests/test_tutorial/test_request_form_models/test_tutorial002.py @@ -187,6 +187,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py b/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py index b503f23a5..bf9935a4f 100644 --- a/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py +++ b/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py @@ -187,6 +187,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_forms/test_tutorial001.py b/tests/test_tutorial/test_request_forms/test_tutorial001.py index 321f8022b..6a09d2a90 100644 --- a/tests/test_tutorial/test_request_forms/test_tutorial001.py +++ b/tests/test_tutorial/test_request_forms/test_tutorial001.py @@ -227,6 +227,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py b/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py index d12219245..8533b2507 100644 --- a/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py +++ b/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py @@ -302,6 +302,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_directly/test_tutorial001.py b/tests/test_tutorial/test_response_directly/test_tutorial001.py index 2cc4f3b0c..24a52aa1a 100644 --- a/tests/test_tutorial/test_response_directly/test_tutorial001.py +++ b/tests/test_tutorial/test_response_directly/test_tutorial001.py @@ -143,6 +143,9 @@ def test_openapi_schema_pv2(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", @@ -274,6 +277,9 @@ def test_openapi_schema_pv1(client: TestClient): "title": "Error Type", "type": "string", }, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": [ "loc", diff --git a/tests/test_tutorial/test_response_model/test_tutorial003.py b/tests/test_tutorial/test_response_model/test_tutorial003.py index 70cfd6e4c..4893de4ed 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003.py @@ -148,6 +148,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_model/test_tutorial003_01.py b/tests/test_tutorial/test_response_model/test_tutorial003_01.py index 3975856b6..1477372d8 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003_01.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003_01.py @@ -159,6 +159,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_response_model/test_tutorial003_02.py b/tests/test_tutorial/test_response_model/test_tutorial003_02.py index eabd20345..8b129e94b 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003_02.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003_02.py @@ -86,6 +86,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_response_model/test_tutorial003_05.py b/tests/test_tutorial/test_response_model/test_tutorial003_05.py index 9500852e1..5ad2f68de 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003_05.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003_05.py @@ -101,6 +101,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_response_model/test_tutorial004.py b/tests/test_tutorial/test_response_model/test_tutorial004.py index 449a52b81..d8750dd96 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial004.py +++ b/tests/test_tutorial/test_response_model/test_tutorial004.py @@ -136,6 +136,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_model/test_tutorial005.py b/tests/test_tutorial/test_response_model/test_tutorial005.py index a633a3fdd..c18e3200f 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial005.py +++ b/tests/test_tutorial/test_response_model/test_tutorial005.py @@ -153,6 +153,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_model/test_tutorial006.py b/tests/test_tutorial/test_response_model/test_tutorial006.py index 863522d1b..50cab6281 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial006.py +++ b/tests/test_tutorial/test_response_model/test_tutorial006.py @@ -153,6 +153,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py index c21cbb4bc..f93c9a8c8 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py @@ -131,6 +131,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py index b79f42e64..c0f083c91 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py @@ -125,6 +125,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py index 61aefd12a..bde1a6278 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py @@ -178,6 +178,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py index 12859227b..94682880d 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py @@ -172,6 +172,9 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_tutorial/test_security/test_tutorial003.py b/tests/test_tutorial/test_security/test_tutorial003.py index 6b8735113..a5a0c2dac 100644 --- a/tests/test_tutorial/test_security/test_tutorial003.py +++ b/tests/test_tutorial/test_security/test_tutorial003.py @@ -210,6 +210,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_security/test_tutorial005.py b/tests/test_tutorial/test_security/test_tutorial005.py index ad644d61b..67d8d99e1 100644 --- a/tests/test_tutorial/test_security/test_tutorial005.py +++ b/tests/test_tutorial/test_security/test_tutorial005.py @@ -424,6 +424,9 @@ def test_openapi_schema(mod: ModuleType): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py index 059fb889b..5d3e33816 100644 --- a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py +++ b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py @@ -132,6 +132,9 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py index cc9afeab7..9469dfb67 100644 --- a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py +++ b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py @@ -132,6 +132,9 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_sql_databases/test_tutorial001.py b/tests/test_tutorial/test_sql_databases/test_tutorial001.py index b45be4884..824d39814 100644 --- a/tests/test_tutorial/test_sql_databases/test_tutorial001.py +++ b/tests/test_tutorial/test_sql_databases/test_tutorial001.py @@ -364,6 +364,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_sql_databases/test_tutorial002.py b/tests/test_tutorial/test_sql_databases/test_tutorial002.py index da0b8b7ce..c30504ed9 100644 --- a/tests/test_tutorial/test_sql_databases/test_tutorial002.py +++ b/tests/test_tutorial/test_sql_databases/test_tutorial002.py @@ -472,6 +472,9 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_using_request_directly/test_tutorial001.py b/tests/test_tutorial/test_using_request_directly/test_tutorial001.py index 54c53ae1e..bbd115729 100644 --- a/tests/test_tutorial/test_using_request_directly/test_tutorial001.py +++ b/tests/test_tutorial/test_using_request_directly/test_tutorial001.py @@ -98,6 +98,9 @@ def test_openapi(): "title": "Error Type", "type": "string", }, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": [ "loc", diff --git a/tests/test_union_body.py b/tests/test_union_body.py index c15acacd1..37501a15a 100644 --- a/tests/test_union_body.py +++ b/tests/test_union_body.py @@ -118,6 +118,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_union_body_discriminator.py b/tests/test_union_body_discriminator.py index 6af9e1d22..8c45f76c7 100644 --- a/tests/test_union_body_discriminator.py +++ b/tests/test_union_body_discriminator.py @@ -177,6 +177,9 @@ def test_discriminator_pydantic_v2() -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_union_body_discriminator_annotated.py b/tests/test_union_body_discriminator_annotated.py index 14145e6f6..4c83008ce 100644 --- a/tests/test_union_body_discriminator_annotated.py +++ b/tests/test_union_body_discriminator_annotated.py @@ -196,6 +196,9 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_union_forms.py b/tests/test_union_forms.py index cbe98ea82..ce7818f80 100644 --- a/tests/test_union_forms.py +++ b/tests/test_union_forms.py @@ -146,6 +146,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_union_inherited_body.py b/tests/test_union_inherited_body.py index ef75d459e..18e1b59e7 100644 --- a/tests/test_union_inherited_body.py +++ b/tests/test_union_inherited_body.py @@ -130,6 +130,9 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, "HTTPValidationError": { diff --git a/tests/test_webhooks_security.py b/tests/test_webhooks_security.py index 21a694cb5..ed29c22ab 100644 --- a/tests/test_webhooks_security.py +++ b/tests/test_webhooks_security.py @@ -115,6 +115,9 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "type": "object", "required": ["loc", "msg", "type"], From 85b156c180da28b4923f841c372d8cac104b0813 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sun, 14 Dec 2025 09:03:51 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_additional_properties.py | 10 ++- tests/test_additional_properties_bool.py | 10 ++- ...onal_responses_custom_model_in_callback.py | 10 ++- ...ional_responses_default_validationerror.py | 10 ++- tests/test_annotated.py | 10 ++- tests/test_application.py | 10 ++- tests/test_compat_params_v1.py | 10 ++- tests/test_dependency_duplicates.py | 10 ++- tests/test_enforce_once_required_parameter.py | 6 +- tests/test_extra_routes.py | 10 ++- .../test_filter_pydantic_sub_model_pv1.py | 10 ++- tests/test_filter_pydantic_sub_model_pv2.py | 10 ++- tests/test_forms_single_param.py | 10 ++- tests/test_generate_unique_id_function.py | 70 +++++++++++++------ ...t_get_model_definitions_formfeed_escape.py | 6 +- tests/test_get_request_body.py | 10 ++- .../test_include_router_defaults_overrides.py | 10 ++- tests/test_infer_param_optionality.py | 10 ++- .../test_modules_same_name_body/test_main.py | 10 ++- tests/test_multi_body_errors.py | 10 ++- tests/test_multi_query_errors.py | 10 ++- tests/test_no_schema_split.py | 10 ++- tests/test_openapi_examples.py | 10 ++- .../test_openapi_query_parameter_extension.py | 10 ++- ...t_openapi_separate_input_output_schemas.py | 20 ++++-- tests/test_param_in_path_and_dependency.py | 10 ++- tests/test_param_include_in_schema.py | 6 +- tests/test_put_no_body.py | 10 ++- tests/test_pydantic_v1_v2_01.py | 10 ++- tests/test_pydantic_v1_v2_list.py | 10 ++- tests/test_pydantic_v1_v2_mixed.py | 10 ++- .../test_multifile.py | 20 ++++-- tests/test_pydantic_v1_v2_noneable.py | 10 ++- tests/test_regex_deprecated_body.py | 10 ++- tests/test_regex_deprecated_params.py | 10 ++- tests/test_repeated_dependency_schema.py | 6 +- tests/test_repeated_parameter_alias.py | 10 ++- tests/test_reponse_set_reponse_code_empty.py | 10 ++- ...test_request_body_parameters_media_type.py | 10 ++- tests/test_schema_extra_examples.py | 10 ++- tests/test_security_oauth2.py | 10 ++- tests/test_security_oauth2_optional.py | 10 ++- ...st_security_oauth2_optional_description.py | 10 ++- tests/test_starlette_exception.py | 10 ++- tests/test_sub_callbacks.py | 10 ++- tests/test_tuples.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial002.py | 10 ++- .../test_tutorial003.py | 10 ++- .../test_tutorial004.py | 10 ++- .../test_bigger_applications/test_main.py | 10 ++- .../test_body/test_tutorial001.py | 10 ++- .../test_body_fields/test_tutorial001.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial003.py | 10 ++- .../test_tutorial009.py | 10 ++- .../test_body_updates/test_tutorial001.py | 20 ++++-- .../test_tutorial001.py | 10 ++- .../test_tutorial002.py | 10 ++- .../test_cookie_params/test_tutorial001.py | 10 ++- .../test_dataclasses/test_tutorial001.py | 10 ++- .../test_dataclasses/test_tutorial003.py | 20 ++++-- .../test_dependencies/test_tutorial001.py | 10 ++- .../test_dependencies/test_tutorial004.py | 10 ++- .../test_dependencies/test_tutorial006.py | 10 ++- .../test_dependencies/test_tutorial012.py | 10 ++- .../test_events/test_tutorial001.py | 10 ++- .../test_events/test_tutorial003.py | 10 ++- .../test_extra_data_types/test_tutorial001.py | 10 ++- .../test_extra_models/test_tutorial003.py | 10 ++- .../test_generate_clients/test_tutorial003.py | 10 ++- .../test_handling_errors/test_tutorial001.py | 10 ++- .../test_handling_errors/test_tutorial002.py | 10 ++- .../test_handling_errors/test_tutorial003.py | 10 ++- .../test_handling_errors/test_tutorial004.py | 10 ++- .../test_handling_errors/test_tutorial005.py | 10 ++- .../test_handling_errors/test_tutorial006.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial002.py | 10 ++- .../test_tutorial003.py | 10 ++- .../test_header_params/test_tutorial001.py | 10 ++- .../test_header_params/test_tutorial002.py | 10 ++- .../test_header_params/test_tutorial003.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_openapi_webhooks/test_tutorial001.py | 10 ++- .../test_tutorial004.py | 20 ++++-- .../test_tutorial005.py | 20 ++++-- .../test_path_params/test_tutorial004.py | 10 ++- .../test_path_params/test_tutorial005.py | 10 ++- .../test_tutorial002.py | 10 ++- .../test_tutorial003.py | 10 ++- .../test_tutorial004.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial002.py | 10 ++- .../test_query_params/test_tutorial005.py | 10 ++- .../test_query_params/test_tutorial006.py | 10 ++- .../test_tutorial010.py | 10 ++- .../test_tutorial011.py | 10 ++- .../test_tutorial012.py | 10 ++- .../test_tutorial013.py | 10 ++- .../test_tutorial014.py | 10 ++- .../test_tutorial015.py | 10 ++- .../test_request_files/test_tutorial001.py | 10 ++- .../test_request_files/test_tutorial001_02.py | 10 ++- .../test_request_files/test_tutorial001_03.py | 10 ++- .../test_request_files/test_tutorial002.py | 10 ++- .../test_request_files/test_tutorial003.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial002.py | 10 ++- .../test_tutorial002_pv1.py | 10 ++- .../test_request_forms/test_tutorial001.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial001.py | 20 ++++-- .../test_response_model/test_tutorial003.py | 10 ++- .../test_tutorial003_01.py | 10 ++- .../test_tutorial003_02.py | 10 ++- .../test_tutorial003_05.py | 10 ++- .../test_response_model/test_tutorial004.py | 10 ++- .../test_response_model/test_tutorial005.py | 10 ++- .../test_response_model/test_tutorial006.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial001_pv1.py | 10 ++- .../test_tutorial004.py | 10 ++- .../test_tutorial005.py | 10 ++- .../test_security/test_tutorial003.py | 10 ++- .../test_security/test_tutorial005.py | 10 ++- .../test_tutorial001.py | 10 ++- .../test_tutorial002.py | 10 ++- .../test_sql_databases/test_tutorial001.py | 10 ++- .../test_sql_databases/test_tutorial002.py | 10 ++- .../test_tutorial001.py | 10 ++- tests/test_union_body.py | 10 ++- tests/test_union_body_discriminator.py | 10 ++- ...test_union_body_discriminator_annotated.py | 10 ++- tests/test_union_forms.py | 10 ++- tests/test_union_inherited_body.py | 10 ++- tests/test_webhooks_security.py | 10 ++- 137 files changed, 1034 insertions(+), 450 deletions(-) diff --git a/tests/test_additional_properties.py b/tests/test_additional_properties.py index 2fdfdeaba..b67e82444 100644 --- a/tests/test_additional_properties.py +++ b/tests/test_additional_properties.py @@ -91,9 +91,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_additional_properties_bool.py b/tests/test_additional_properties_bool.py index 391b38c4a..8d6805cbc 100644 --- a/tests/test_additional_properties_bool.py +++ b/tests/test_additional_properties_bool.py @@ -123,9 +123,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_additional_responses_custom_model_in_callback.py b/tests/test_additional_responses_custom_model_in_callback.py index e11e8bec8..a571699fc 100644 --- a/tests/test_additional_responses_custom_model_in_callback.py +++ b/tests/test_additional_responses_custom_model_in_callback.py @@ -145,9 +145,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_additional_responses_default_validationerror.py b/tests/test_additional_responses_default_validationerror.py index d4ab2d2e5..5ebdde7d2 100644 --- a/tests/test_additional_responses_default_validationerror.py +++ b/tests/test_additional_responses_default_validationerror.py @@ -66,9 +66,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_annotated.py b/tests/test_annotated.py index ead3297bf..48d697860 100644 --- a/tests/test_annotated.py +++ b/tests/test_annotated.py @@ -305,9 +305,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_application.py b/tests/test_application.py index 14aa631e2..d5d507689 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -1269,9 +1269,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_compat_params_v1.py b/tests/test_compat_params_v1.py index 24c4dd214..437ebd61f 100644 --- a/tests/test_compat_params_v1.py +++ b/tests/test_compat_params_v1.py @@ -1111,9 +1111,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_dependency_duplicates.py b/tests/test_dependency_duplicates.py index 51faa757c..1d05e3c5d 100644 --- a/tests/test_dependency_duplicates.py +++ b/tests/test_dependency_duplicates.py @@ -239,9 +239,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_enforce_once_required_parameter.py b/tests/test_enforce_once_required_parameter.py index 9cd53f8fa..52aa0cfee 100644 --- a/tests/test_enforce_once_required_parameter.py +++ b/tests/test_enforce_once_required_parameter.py @@ -49,9 +49,9 @@ expected_schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_extra_routes.py b/tests/test_extra_routes.py index 912c8ce80..5a7dca689 100644 --- a/tests/test_extra_routes.py +++ b/tests/test_extra_routes.py @@ -352,9 +352,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py b/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py index abe6cf8a0..864f8d813 100644 --- a/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py +++ b/tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py @@ -123,9 +123,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_filter_pydantic_sub_model_pv2.py b/tests/test_filter_pydantic_sub_model_pv2.py index 816802d75..690457913 100644 --- a/tests/test_filter_pydantic_sub_model_pv2.py +++ b/tests/test_filter_pydantic_sub_model_pv2.py @@ -177,9 +177,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_forms_single_param.py b/tests/test_forms_single_param.py index 2de37052c..e56baa567 100644 --- a/tests/test_forms_single_param.py +++ b/tests/test_forms_single_param.py @@ -89,9 +89,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_generate_unique_id_function.py b/tests/test_generate_unique_id_function.py index aa053047b..2d7fc99e1 100644 --- a/tests/test_generate_unique_id_function.py +++ b/tests/test_generate_unique_id_function.py @@ -223,9 +223,13 @@ def test_top_level_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } @@ -427,9 +431,13 @@ def test_router_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } @@ -631,9 +639,13 @@ def test_router_include_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } @@ -908,9 +920,13 @@ def test_subrouter_top_level_include_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } @@ -1115,9 +1131,13 @@ def test_router_path_operation_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } @@ -1326,9 +1346,13 @@ def test_app_path_operation_overrides_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } @@ -1615,9 +1639,13 @@ def test_callback_override_generate_unique_id(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_get_model_definitions_formfeed_escape.py b/tests/test_get_model_definitions_formfeed_escape.py index bddfae7cd..06a2eb2da 100644 --- a/tests/test_get_model_definitions_formfeed_escape.py +++ b/tests/test_get_model_definitions_formfeed_escape.py @@ -81,9 +81,9 @@ openapi_schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_get_request_body.py b/tests/test_get_request_body.py index 62f8a37a0..3af210e81 100644 --- a/tests/test_get_request_body.py +++ b/tests/test_get_request_body.py @@ -100,9 +100,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_include_router_defaults_overrides.py b/tests/test_include_router_defaults_overrides.py index 8af56a564..9903032ec 100644 --- a/tests/test_include_router_defaults_overrides.py +++ b/tests/test_include_router_defaults_overrides.py @@ -7290,9 +7290,13 @@ def test_openapi(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_infer_param_optionality.py b/tests/test_infer_param_optionality.py index 67108aac8..36d53bd75 100644 --- a/tests/test_infer_param_optionality.py +++ b/tests/test_infer_param_optionality.py @@ -350,9 +350,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_modules_same_name_body/test_main.py b/tests/test_modules_same_name_body/test_main.py index 6f5e11aeb..297a8be4e 100644 --- a/tests/test_modules_same_name_body/test_main.py +++ b/tests/test_modules_same_name_body/test_main.py @@ -131,9 +131,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_multi_body_errors.py b/tests/test_multi_body_errors.py index 8caa3d155..43dffc700 100644 --- a/tests/test_multi_body_errors.py +++ b/tests/test_multi_body_errors.py @@ -221,9 +221,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_multi_query_errors.py b/tests/test_multi_query_errors.py index 85ec13690..11ca2c5a9 100644 --- a/tests/test_multi_query_errors.py +++ b/tests/test_multi_query_errors.py @@ -118,9 +118,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_no_schema_split.py b/tests/test_no_schema_split.py index 0de7719cb..e400117b5 100644 --- a/tests/test_no_schema_split.py +++ b/tests/test_no_schema_split.py @@ -192,9 +192,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_openapi_examples.py b/tests/test_openapi_examples.py index 26357d668..4de6fb973 100644 --- a/tests/test_openapi_examples.py +++ b/tests/test_openapi_examples.py @@ -461,9 +461,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_openapi_query_parameter_extension.py b/tests/test_openapi_query_parameter_extension.py index 02e41bde3..85ae6874b 100644 --- a/tests/test_openapi_query_parameter_extension.py +++ b/tests/test_openapi_query_parameter_extension.py @@ -130,9 +130,13 @@ def test_openapi(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_openapi_separate_input_output_schemas.py b/tests/test_openapi_separate_input_output_schemas.py index de1a608a9..064650985 100644 --- a/tests/test_openapi_separate_input_output_schemas.py +++ b/tests/test_openapi_separate_input_output_schemas.py @@ -438,9 +438,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], @@ -673,9 +677,13 @@ def test_openapi_schema_no_separate(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_param_in_path_and_dependency.py b/tests/test_param_in_path_and_dependency.py index f2e0b4497..8070ba7f3 100644 --- a/tests/test_param_in_path_and_dependency.py +++ b/tests/test_param_in_path_and_dependency.py @@ -86,9 +86,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_param_include_in_schema.py b/tests/test_param_include_in_schema.py index 0560583cc..0dae61eaf 100644 --- a/tests/test_param_include_in_schema.py +++ b/tests/test_param_include_in_schema.py @@ -151,9 +151,9 @@ openapi_schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, }, } diff --git a/tests/test_put_no_body.py b/tests/test_put_no_body.py index e72a6f214..09c457900 100644 --- a/tests/test_put_no_body.py +++ b/tests/test_put_no_body.py @@ -78,9 +78,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_pydantic_v1_v2_01.py b/tests/test_pydantic_v1_v2_01.py index 7b51c6371..ce6b72541 100644 --- a/tests/test_pydantic_v1_v2_01.py +++ b/tests/test_pydantic_v1_v2_01.py @@ -464,9 +464,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_list.py b/tests/test_pydantic_v1_v2_list.py index 0d99813e9..6cc243420 100644 --- a/tests/test_pydantic_v1_v2_list.py +++ b/tests/test_pydantic_v1_v2_list.py @@ -690,9 +690,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_mixed.py b/tests/test_pydantic_v1_v2_mixed.py index 107fde138..0af514e9e 100644 --- a/tests/test_pydantic_v1_v2_mixed.py +++ b/tests/test_pydantic_v1_v2_mixed.py @@ -1488,9 +1488,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_multifile/test_multifile.py b/tests/test_pydantic_v1_v2_multifile/test_multifile.py index f943c4c3f..12a444e5f 100644 --- a/tests/test_pydantic_v1_v2_multifile/test_multifile.py +++ b/tests/test_pydantic_v1_v2_multifile/test_multifile.py @@ -831,9 +831,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], @@ -1045,9 +1049,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_pydantic_v1_v2_noneable.py b/tests/test_pydantic_v1_v2_noneable.py index 8d9d65e55..5a5e43e24 100644 --- a/tests/test_pydantic_v1_v2_noneable.py +++ b/tests/test_pydantic_v1_v2_noneable.py @@ -755,9 +755,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_regex_deprecated_body.py b/tests/test_regex_deprecated_body.py index 9f7389d15..8910af899 100644 --- a/tests/test_regex_deprecated_body.py +++ b/tests/test_regex_deprecated_body.py @@ -170,9 +170,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_regex_deprecated_params.py b/tests/test_regex_deprecated_params.py index 4684259a5..997b27576 100644 --- a/tests/test_regex_deprecated_params.py +++ b/tests/test_regex_deprecated_params.py @@ -153,9 +153,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_repeated_dependency_schema.py b/tests/test_repeated_dependency_schema.py index 6879aa2b5..2539c7950 100644 --- a/tests/test_repeated_dependency_schema.py +++ b/tests/test_repeated_dependency_schema.py @@ -42,9 +42,9 @@ schema = { }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": {"title": "Error URL", "type": "string", "format": "uri"}, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_repeated_parameter_alias.py b/tests/test_repeated_parameter_alias.py index d1cdd17c5..02d288a5e 100644 --- a/tests/test_repeated_parameter_alias.py +++ b/tests/test_repeated_parameter_alias.py @@ -50,9 +50,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "required": ["loc", "msg", "type"], "title": "ValidationError", diff --git a/tests/test_reponse_set_reponse_code_empty.py b/tests/test_reponse_set_reponse_code_empty.py index 041afa6d2..4e7751472 100644 --- a/tests/test_reponse_set_reponse_code_empty.py +++ b/tests/test_reponse_set_reponse_code_empty.py @@ -90,9 +90,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_request_body_parameters_media_type.py b/tests/test_request_body_parameters_media_type.py index 7938ee2fe..05caa231a 100644 --- a/tests/test_request_body_parameters_media_type.py +++ b/tests/test_request_body_parameters_media_type.py @@ -170,9 +170,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_schema_extra_examples.py b/tests/test_schema_extra_examples.py index 0ac12e105..4da0f4551 100644 --- a/tests/test_schema_extra_examples.py +++ b/tests/test_schema_extra_examples.py @@ -959,9 +959,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_security_oauth2.py b/tests/test_security_oauth2.py index 7da407e4d..5ea720a6e 100644 --- a/tests/test_security_oauth2.py +++ b/tests/test_security_oauth2.py @@ -300,9 +300,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_security_oauth2_optional.py b/tests/test_security_oauth2_optional.py index 8a6a6d498..1e985557d 100644 --- a/tests/test_security_oauth2_optional.py +++ b/tests/test_security_oauth2_optional.py @@ -303,9 +303,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_security_oauth2_optional_description.py b/tests/test_security_oauth2_optional_description.py index 59dec869b..36f1e213b 100644 --- a/tests/test_security_oauth2_optional_description.py +++ b/tests/test_security_oauth2_optional_description.py @@ -304,9 +304,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_starlette_exception.py b/tests/test_starlette_exception.py index e93586492..4c2815be5 100644 --- a/tests/test_starlette_exception.py +++ b/tests/test_starlette_exception.py @@ -184,9 +184,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_sub_callbacks.py b/tests/test_sub_callbacks.py index f27721493..25a24c526 100644 --- a/tests/test_sub_callbacks.py +++ b/tests/test_sub_callbacks.py @@ -305,9 +305,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tuples.py b/tests/test_tuples.py index 476d03cd3..699f3d558 100644 --- a/tests/test_tuples.py +++ b/tests/test_tuples.py @@ -303,9 +303,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial001.py b/tests/test_tutorial/test_additional_responses/test_tutorial001.py index 2d571f7a3..4fc40fe94 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial001.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial001.py @@ -98,9 +98,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial002.py b/tests/test_tutorial/test_additional_responses/test_tutorial002.py index 3ccfaa3e2..4e66da7fa 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial002.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial002.py @@ -122,9 +122,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial003.py b/tests/test_tutorial/test_additional_responses/test_tutorial003.py index 0126903e8..7d596af34 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial003.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial003.py @@ -102,9 +102,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_additional_responses/test_tutorial004.py b/tests/test_tutorial/test_additional_responses/test_tutorial004.py index 055d45956..f89232982 100644 --- a/tests/test_tutorial/test_additional_responses/test_tutorial004.py +++ b/tests/test_tutorial/test_additional_responses/test_tutorial004.py @@ -125,9 +125,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_bigger_applications/test_main.py b/tests/test_tutorial/test_bigger_applications/test_main.py index 2d5278e40..0ce49f93b 100644 --- a/tests/test_tutorial/test_bigger_applications/test_main.py +++ b/tests/test_tutorial/test_bigger_applications/test_main.py @@ -719,9 +719,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_body/test_tutorial001.py b/tests/test_tutorial/test_body/test_tutorial001.py index 1badc5740..b8437e6fe 100644 --- a/tests/test_tutorial/test_body/test_tutorial001.py +++ b/tests/test_tutorial/test_body/test_tutorial001.py @@ -471,9 +471,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_fields/test_tutorial001.py b/tests/test_tutorial/test_body_fields/test_tutorial001.py index 7d239bcd5..918fa62a6 100644 --- a/tests/test_tutorial/test_body_fields/test_tutorial001.py +++ b/tests/test_tutorial/test_body_fields/test_tutorial001.py @@ -198,9 +198,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py b/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py index 4efcaa746..5d9c4d3fc 100644 --- a/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py +++ b/tests/test_tutorial/test_body_multiple_params/test_tutorial001.py @@ -201,9 +201,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py b/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py index b31678561..7a667b7e2 100644 --- a/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py +++ b/tests/test_tutorial/test_body_multiple_params/test_tutorial003.py @@ -268,9 +268,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_nested_models/test_tutorial009.py b/tests/test_tutorial/test_body_nested_models/test_tutorial009.py index 822d5e412..1c9570ea6 100644 --- a/tests/test_tutorial/test_body_nested_models/test_tutorial009.py +++ b/tests/test_tutorial/test_body_nested_models/test_tutorial009.py @@ -115,9 +115,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_body_updates/test_tutorial001.py b/tests/test_tutorial/test_body_updates/test_tutorial001.py index 9c307f2af..7e8b39e9d 100644 --- a/tests/test_tutorial/test_body_updates/test_tutorial001.py +++ b/tests/test_tutorial/test_body_updates/test_tutorial001.py @@ -170,9 +170,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { @@ -307,9 +311,13 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py b/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py index fbd776c5c..8a4aede65 100644 --- a/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py +++ b/tests/test_tutorial/test_cookie_param_models/test_tutorial001.py @@ -194,9 +194,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py b/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py index 314fe2e0e..3e7dad618 100644 --- a/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py +++ b/tests/test_tutorial/test_cookie_param_models/test_tutorial002.py @@ -232,9 +232,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_cookie_params/test_tutorial001.py b/tests/test_tutorial/test_cookie_params/test_tutorial001.py index 8d5d396d5..d8e58f26f 100644 --- a/tests/test_tutorial/test_cookie_params/test_tutorial001.py +++ b/tests/test_tutorial/test_cookie_params/test_tutorial001.py @@ -109,9 +109,13 @@ def test_openapi_schema(mod: ModuleType): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dataclasses/test_tutorial001.py b/tests/test_tutorial/test_dataclasses/test_tutorial001.py index 0b9049067..f5af21fd1 100644 --- a/tests/test_tutorial/test_dataclasses/test_tutorial001.py +++ b/tests/test_tutorial/test_dataclasses/test_tutorial001.py @@ -155,9 +155,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_dataclasses/test_tutorial003.py b/tests/test_tutorial/test_dataclasses/test_tutorial003.py index 9a3d74431..64d558b89 100644 --- a/tests/test_tutorial/test_dataclasses/test_tutorial003.py +++ b/tests/test_tutorial/test_dataclasses/test_tutorial003.py @@ -197,9 +197,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } @@ -334,9 +338,13 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_dependencies/test_tutorial001.py b/tests/test_tutorial/test_dependencies/test_tutorial001.py index cee5f3f05..1dc2e21e7 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial001.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial001.py @@ -182,9 +182,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dependencies/test_tutorial004.py b/tests/test_tutorial/test_dependencies/test_tutorial004.py index 166e111d2..ffb30492a 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial004.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial004.py @@ -161,9 +161,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dependencies/test_tutorial006.py b/tests/test_tutorial/test_dependencies/test_tutorial006.py index 4888ab76c..78d151bf2 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial006.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial006.py @@ -147,9 +147,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_dependencies/test_tutorial012.py b/tests/test_tutorial/test_dependencies/test_tutorial012.py index 5328be0ce..2a565fa92 100644 --- a/tests/test_tutorial/test_dependencies/test_tutorial012.py +++ b/tests/test_tutorial/test_dependencies/test_tutorial012.py @@ -259,9 +259,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_events/test_tutorial001.py b/tests/test_tutorial/test_events/test_tutorial001.py index db90df9b4..224b2be2a 100644 --- a/tests/test_tutorial/test_events/test_tutorial001.py +++ b/tests/test_tutorial/test_events/test_tutorial001.py @@ -72,9 +72,13 @@ def test_openapi_schema(app: FastAPI): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_events/test_tutorial003.py b/tests/test_tutorial/test_events/test_tutorial003.py index 841a3006f..6d12836e6 100644 --- a/tests/test_tutorial/test_events/test_tutorial003.py +++ b/tests/test_tutorial/test_events/test_tutorial003.py @@ -85,9 +85,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_extra_data_types/test_tutorial001.py b/tests/test_tutorial/test_extra_data_types/test_tutorial001.py index 5cf1b78d6..b221131d1 100644 --- a/tests/test_tutorial/test_extra_data_types/test_tutorial001.py +++ b/tests/test_tutorial/test_extra_data_types/test_tutorial001.py @@ -175,9 +175,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_extra_models/test_tutorial003.py b/tests/test_tutorial/test_extra_models/test_tutorial003.py index 6734489d3..2768b0199 100644 --- a/tests/test_tutorial/test_extra_models/test_tutorial003.py +++ b/tests/test_tutorial/test_extra_models/test_tutorial003.py @@ -131,9 +131,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_generate_clients/test_tutorial003.py b/tests/test_tutorial/test_generate_clients/test_tutorial003.py index 05d684d24..6886818c9 100644 --- a/tests/test_tutorial/test_generate_clients/test_tutorial003.py +++ b/tests/test_tutorial/test_generate_clients/test_tutorial003.py @@ -180,9 +180,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial001.py b/tests/test_tutorial/test_handling_errors/test_tutorial001.py index 4af43d1d2..974502578 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial001.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial001.py @@ -72,9 +72,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial002.py b/tests/test_tutorial/test_handling_errors/test_tutorial002.py index 50e002d79..18437f635 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial002.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial002.py @@ -72,9 +72,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial003.py b/tests/test_tutorial/test_handling_errors/test_tutorial003.py index eef8157f5..00c03576f 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial003.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial003.py @@ -73,9 +73,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial004.py b/tests/test_tutorial/test_handling_errors/test_tutorial004.py index 929b600df..b8caa4dd0 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial004.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial004.py @@ -78,9 +78,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial005.py b/tests/test_tutorial/test_handling_errors/test_tutorial005.py index 9b05e6189..fd522ca5a 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial005.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial005.py @@ -117,9 +117,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_handling_errors/test_tutorial006.py b/tests/test_tutorial/test_handling_errors/test_tutorial006.py index d561ce7eb..dc17dc1f2 100644 --- a/tests/test_tutorial/test_handling_errors/test_tutorial006.py +++ b/tests/test_tutorial/test_handling_errors/test_tutorial006.py @@ -100,9 +100,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial001.py b/tests/test_tutorial/test_header_param_models/test_tutorial001.py index 870e511bf..45693b87b 100644 --- a/tests/test_tutorial/test_header_param_models/test_tutorial001.py +++ b/tests/test_tutorial/test_header_param_models/test_tutorial001.py @@ -227,9 +227,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial002.py b/tests/test_tutorial/test_header_param_models/test_tutorial002.py index 951a2aee5..ecde39b14 100644 --- a/tests/test_tutorial/test_header_param_models/test_tutorial002.py +++ b/tests/test_tutorial/test_header_param_models/test_tutorial002.py @@ -238,9 +238,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_header_param_models/test_tutorial003.py b/tests/test_tutorial/test_header_param_models/test_tutorial003.py index c5ea851f5..6336cf2c9 100644 --- a/tests/test_tutorial/test_header_param_models/test_tutorial003.py +++ b/tests/test_tutorial/test_header_param_models/test_tutorial003.py @@ -274,9 +274,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_header_params/test_tutorial001.py b/tests/test_tutorial/test_header_params/test_tutorial001.py index ca0887607..c72ea6b23 100644 --- a/tests/test_tutorial/test_header_params/test_tutorial001.py +++ b/tests/test_tutorial/test_header_params/test_tutorial001.py @@ -100,9 +100,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_header_params/test_tutorial002.py b/tests/test_tutorial/test_header_params/test_tutorial002.py index 355c9c514..178af0118 100644 --- a/tests/test_tutorial/test_header_params/test_tutorial002.py +++ b/tests/test_tutorial/test_header_params/test_tutorial002.py @@ -112,9 +112,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_header_params/test_tutorial003.py b/tests/test_tutorial/test_header_params/test_tutorial003.py index 4a702c691..eec45afc2 100644 --- a/tests/test_tutorial/test_header_params/test_tutorial003.py +++ b/tests/test_tutorial/test_header_params/test_tutorial003.py @@ -124,9 +124,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py b/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py index 6650cd63c..5db5534cb 100644 --- a/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py +++ b/tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py @@ -214,9 +214,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py b/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py index 9bf84c218..32f78eaa8 100644 --- a/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py +++ b/tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py @@ -107,9 +107,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py b/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py index 33dc56c57..75a24b357 100644 --- a/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py +++ b/tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py @@ -120,9 +120,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { @@ -220,9 +224,13 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py b/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py index feeaaca8e..69a3a76fd 100644 --- a/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py +++ b/tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py @@ -119,9 +119,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { @@ -219,9 +223,13 @@ def test_openapi_schema_pv1(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_path_params/test_tutorial004.py b/tests/test_tutorial/test_path_params/test_tutorial004.py index a70516c30..e7cb9cbb8 100644 --- a/tests/test_tutorial/test_path_params/test_tutorial004.py +++ b/tests/test_tutorial/test_path_params/test_tutorial004.py @@ -73,9 +73,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_path_params/test_tutorial005.py b/tests/test_tutorial/test_path_params/test_tutorial005.py index f881cc0da..73b95b5ad 100644 --- a/tests/test_tutorial/test_path_params/test_tutorial005.py +++ b/tests/test_tutorial/test_path_params/test_tutorial005.py @@ -136,9 +136,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py index 80df8cee9..3ad2c4650 100644 --- a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py +++ b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py @@ -129,9 +129,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py index 83909e04a..d6b5046db 100644 --- a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py +++ b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py @@ -143,9 +143,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py index fb20c3c40..93a00c18e 100644 --- a/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py +++ b/tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py @@ -142,9 +142,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_query_param_models/test_tutorial001.py b/tests/test_tutorial/test_query_param_models/test_tutorial001.py index 5e773e45d..6af8a00c2 100644 --- a/tests/test_tutorial/test_query_param_models/test_tutorial001.py +++ b/tests/test_tutorial/test_query_param_models/test_tutorial001.py @@ -249,9 +249,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_query_param_models/test_tutorial002.py b/tests/test_tutorial/test_query_param_models/test_tutorial002.py index ba98d374b..69bee4e17 100644 --- a/tests/test_tutorial/test_query_param_models/test_tutorial002.py +++ b/tests/test_tutorial/test_query_param_models/test_tutorial002.py @@ -271,9 +271,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_query_params/test_tutorial005.py b/tests/test_tutorial/test_query_params/test_tutorial005.py index b72fd72e0..03abdc64e 100644 --- a/tests/test_tutorial/test_query_params/test_tutorial005.py +++ b/tests/test_tutorial/test_query_params/test_tutorial005.py @@ -100,9 +100,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params/test_tutorial006.py b/tests/test_tutorial/test_query_params/test_tutorial006.py index 61e5a9b61..7d69c16d4 100644 --- a/tests/test_tutorial/test_query_params/test_tutorial006.py +++ b/tests/test_tutorial/test_query_params/test_tutorial006.py @@ -167,9 +167,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py index 3f77cec7c..b65ddbd0b 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py @@ -165,9 +165,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py index 0d448c6e3..084f7d721 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py @@ -111,9 +111,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py index d1230bd1c..012bd3ced 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py @@ -97,9 +97,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py index cfcf89af2..b91b93143 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py @@ -96,9 +96,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py index aa5e01b3a..357b5c0c8 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py @@ -94,9 +94,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py index e3f970426..415aa8f1e 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial015.py @@ -132,9 +132,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_request_files/test_tutorial001.py b/tests/test_tutorial/test_request_files/test_tutorial001.py index ca4bde594..bb0989311 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial001.py +++ b/tests/test_tutorial/test_request_files/test_tutorial001.py @@ -213,9 +213,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_files/test_tutorial001_02.py b/tests/test_tutorial/test_request_files/test_tutorial001_02.py index bbe037624..9c9540d34 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial001_02.py +++ b/tests/test_tutorial/test_request_files/test_tutorial001_02.py @@ -218,9 +218,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_request_files/test_tutorial001_03.py b/tests/test_tutorial/test_request_files/test_tutorial001_03.py index bbdb2e7a2..55c8635c4 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial001_03.py +++ b/tests/test_tutorial/test_request_files/test_tutorial001_03.py @@ -166,9 +166,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_request_files/test_tutorial002.py b/tests/test_tutorial/test_request_files/test_tutorial002.py index e234f5fa7..e36f9530b 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial002.py +++ b/tests/test_tutorial/test_request_files/test_tutorial002.py @@ -254,9 +254,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_files/test_tutorial003.py b/tests/test_tutorial/test_request_files/test_tutorial003.py index a27eae4f9..331335558 100644 --- a/tests/test_tutorial/test_request_files/test_tutorial003.py +++ b/tests/test_tutorial/test_request_files/test_tutorial003.py @@ -210,9 +210,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_request_form_models/test_tutorial001.py b/tests/test_tutorial/test_request_form_models/test_tutorial001.py index a2928d75c..243392d37 100644 --- a/tests/test_tutorial/test_request_form_models/test_tutorial001.py +++ b/tests/test_tutorial/test_request_form_models/test_tutorial001.py @@ -225,9 +225,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_form_models/test_tutorial002.py b/tests/test_tutorial/test_request_form_models/test_tutorial002.py index 17284b588..947182b75 100644 --- a/tests/test_tutorial/test_request_form_models/test_tutorial002.py +++ b/tests/test_tutorial/test_request_form_models/test_tutorial002.py @@ -187,9 +187,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py b/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py index bf9935a4f..da5d0d754 100644 --- a/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py +++ b/tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py @@ -187,9 +187,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_forms/test_tutorial001.py b/tests/test_tutorial/test_request_forms/test_tutorial001.py index 6a09d2a90..307717f1d 100644 --- a/tests/test_tutorial/test_request_forms/test_tutorial001.py +++ b/tests/test_tutorial/test_request_forms/test_tutorial001.py @@ -227,9 +227,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py b/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py index 8533b2507..ae8e2350b 100644 --- a/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py +++ b/tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py @@ -302,9 +302,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_directly/test_tutorial001.py b/tests/test_tutorial/test_response_directly/test_tutorial001.py index 24a52aa1a..44c45b856 100644 --- a/tests/test_tutorial/test_response_directly/test_tutorial001.py +++ b/tests/test_tutorial/test_response_directly/test_tutorial001.py @@ -143,9 +143,13 @@ def test_openapi_schema_pv2(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "required": ["loc", "msg", "type"], "title": "ValidationError", @@ -277,9 +281,13 @@ def test_openapi_schema_pv1(client: TestClient): "title": "Error Type", "type": "string", }, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "required": [ "loc", diff --git a/tests/test_tutorial/test_response_model/test_tutorial003.py b/tests/test_tutorial/test_response_model/test_tutorial003.py index 4893de4ed..91ff97ed5 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003.py @@ -148,9 +148,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_model/test_tutorial003_01.py b/tests/test_tutorial/test_response_model/test_tutorial003_01.py index 1477372d8..678510eef 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003_01.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003_01.py @@ -159,9 +159,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_response_model/test_tutorial003_02.py b/tests/test_tutorial/test_response_model/test_tutorial003_02.py index 8b129e94b..09cb5f9f7 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003_02.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003_02.py @@ -86,9 +86,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_response_model/test_tutorial003_05.py b/tests/test_tutorial/test_response_model/test_tutorial003_05.py index 5ad2f68de..fc94d83fc 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial003_05.py +++ b/tests/test_tutorial/test_response_model/test_tutorial003_05.py @@ -101,9 +101,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_response_model/test_tutorial004.py b/tests/test_tutorial/test_response_model/test_tutorial004.py index d8750dd96..c0a2e68b4 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial004.py +++ b/tests/test_tutorial/test_response_model/test_tutorial004.py @@ -136,9 +136,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_model/test_tutorial005.py b/tests/test_tutorial/test_response_model/test_tutorial005.py index c18e3200f..72505b09a 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial005.py +++ b/tests/test_tutorial/test_response_model/test_tutorial005.py @@ -153,9 +153,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_response_model/test_tutorial006.py b/tests/test_tutorial/test_response_model/test_tutorial006.py index 50cab6281..e35588c56 100644 --- a/tests/test_tutorial/test_response_model/test_tutorial006.py +++ b/tests/test_tutorial/test_response_model/test_tutorial006.py @@ -153,9 +153,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py index f93c9a8c8..b1923efe3 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial001.py @@ -131,9 +131,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py index c0f083c91..77b051892 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py @@ -125,9 +125,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py index bde1a6278..7ea614d7c 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial004.py @@ -178,9 +178,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py b/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py index 94682880d..83387d4d2 100644 --- a/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py +++ b/tests/test_tutorial/test_schema_extra_example/test_tutorial005.py @@ -172,9 +172,13 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, } diff --git a/tests/test_tutorial/test_security/test_tutorial003.py b/tests/test_tutorial/test_security/test_tutorial003.py index a5a0c2dac..9590a8e10 100644 --- a/tests/test_tutorial/test_security/test_tutorial003.py +++ b/tests/test_tutorial/test_security/test_tutorial003.py @@ -210,9 +210,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_security/test_tutorial005.py b/tests/test_tutorial/test_security/test_tutorial005.py index 67d8d99e1..5e513fbfa 100644 --- a/tests/test_tutorial/test_security/test_tutorial005.py +++ b/tests/test_tutorial/test_security/test_tutorial005.py @@ -424,9 +424,13 @@ def test_openapi_schema(mod: ModuleType): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py index 5d3e33816..6173ca16e 100644 --- a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py +++ b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py @@ -132,9 +132,13 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py index 9469dfb67..019defccb 100644 --- a/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py +++ b/tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py @@ -132,9 +132,13 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_sql_databases/test_tutorial001.py b/tests/test_tutorial/test_sql_databases/test_tutorial001.py index 824d39814..3913a4495 100644 --- a/tests/test_tutorial/test_sql_databases/test_tutorial001.py +++ b/tests/test_tutorial/test_sql_databases/test_tutorial001.py @@ -364,9 +364,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_sql_databases/test_tutorial002.py b/tests/test_tutorial/test_sql_databases/test_tutorial002.py index c30504ed9..e1c7eef24 100644 --- a/tests/test_tutorial/test_sql_databases/test_tutorial002.py +++ b/tests/test_tutorial/test_sql_databases/test_tutorial002.py @@ -472,9 +472,13 @@ def test_openapi_schema(client: TestClient): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_tutorial/test_using_request_directly/test_tutorial001.py b/tests/test_tutorial/test_using_request_directly/test_tutorial001.py index bbd115729..4d4668a95 100644 --- a/tests/test_tutorial/test_using_request_directly/test_tutorial001.py +++ b/tests/test_tutorial/test_using_request_directly/test_tutorial001.py @@ -98,9 +98,13 @@ def test_openapi(): "title": "Error Type", "type": "string", }, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "required": [ "loc", diff --git a/tests/test_union_body.py b/tests/test_union_body.py index 37501a15a..985221159 100644 --- a/tests/test_union_body.py +++ b/tests/test_union_body.py @@ -118,9 +118,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_union_body_discriminator.py b/tests/test_union_body_discriminator.py index 8c45f76c7..45e6a8992 100644 --- a/tests/test_union_body_discriminator.py +++ b/tests/test_union_body_discriminator.py @@ -177,9 +177,13 @@ def test_discriminator_pydantic_v2() -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_union_body_discriminator_annotated.py b/tests/test_union_body_discriminator_annotated.py index 4c83008ce..a0c09fe0a 100644 --- a/tests/test_union_body_discriminator_annotated.py +++ b/tests/test_union_body_discriminator_annotated.py @@ -196,9 +196,13 @@ def test_openapi_schema(client: TestClient) -> None: }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_union_forms.py b/tests/test_union_forms.py index ce7818f80..3648a0a99 100644 --- a/tests/test_union_forms.py +++ b/tests/test_union_forms.py @@ -146,9 +146,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"], diff --git a/tests/test_union_inherited_body.py b/tests/test_union_inherited_body.py index 18e1b59e7..d209e7540 100644 --- a/tests/test_union_inherited_body.py +++ b/tests/test_union_inherited_body.py @@ -130,9 +130,13 @@ def test_openapi_schema(): }, "msg": {"title": "Message", "type": "string"}, "type": {"title": "Error Type", "type": "string"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, }, "HTTPValidationError": { diff --git a/tests/test_webhooks_security.py b/tests/test_webhooks_security.py index ed29c22ab..9d2ce6e3b 100644 --- a/tests/test_webhooks_security.py +++ b/tests/test_webhooks_security.py @@ -115,9 +115,13 @@ def test_openapi_schema(): }, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, - "input": {"title": "Input"}, - "ctx": {"title": "Context", "type": "object"}, - "url": {"title": "Error URL", "type": "string", "format": "uri"}, + "input": {"title": "Input"}, + "ctx": {"title": "Context", "type": "object"}, + "url": { + "title": "Error URL", + "type": "string", + "format": "uri", + }, }, "type": "object", "required": ["loc", "msg", "type"],