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"],