Browse Source

🎨 Auto format

pull/14520/head
pre-commit-ci-lite[bot] 7 months ago
committed by GitHub
parent
commit
85b156c180
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      tests/test_additional_properties.py
  2. 10
      tests/test_additional_properties_bool.py
  3. 10
      tests/test_additional_responses_custom_model_in_callback.py
  4. 10
      tests/test_additional_responses_default_validationerror.py
  5. 10
      tests/test_annotated.py
  6. 10
      tests/test_application.py
  7. 10
      tests/test_compat_params_v1.py
  8. 10
      tests/test_dependency_duplicates.py
  9. 6
      tests/test_enforce_once_required_parameter.py
  10. 10
      tests/test_extra_routes.py
  11. 10
      tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py
  12. 10
      tests/test_filter_pydantic_sub_model_pv2.py
  13. 10
      tests/test_forms_single_param.py
  14. 70
      tests/test_generate_unique_id_function.py
  15. 6
      tests/test_get_model_definitions_formfeed_escape.py
  16. 10
      tests/test_get_request_body.py
  17. 10
      tests/test_include_router_defaults_overrides.py
  18. 10
      tests/test_infer_param_optionality.py
  19. 10
      tests/test_modules_same_name_body/test_main.py
  20. 10
      tests/test_multi_body_errors.py
  21. 10
      tests/test_multi_query_errors.py
  22. 10
      tests/test_no_schema_split.py
  23. 10
      tests/test_openapi_examples.py
  24. 10
      tests/test_openapi_query_parameter_extension.py
  25. 20
      tests/test_openapi_separate_input_output_schemas.py
  26. 10
      tests/test_param_in_path_and_dependency.py
  27. 6
      tests/test_param_include_in_schema.py
  28. 10
      tests/test_put_no_body.py
  29. 10
      tests/test_pydantic_v1_v2_01.py
  30. 10
      tests/test_pydantic_v1_v2_list.py
  31. 10
      tests/test_pydantic_v1_v2_mixed.py
  32. 20
      tests/test_pydantic_v1_v2_multifile/test_multifile.py
  33. 10
      tests/test_pydantic_v1_v2_noneable.py
  34. 10
      tests/test_regex_deprecated_body.py
  35. 10
      tests/test_regex_deprecated_params.py
  36. 6
      tests/test_repeated_dependency_schema.py
  37. 10
      tests/test_repeated_parameter_alias.py
  38. 10
      tests/test_reponse_set_reponse_code_empty.py
  39. 10
      tests/test_request_body_parameters_media_type.py
  40. 10
      tests/test_schema_extra_examples.py
  41. 10
      tests/test_security_oauth2.py
  42. 10
      tests/test_security_oauth2_optional.py
  43. 10
      tests/test_security_oauth2_optional_description.py
  44. 10
      tests/test_starlette_exception.py
  45. 10
      tests/test_sub_callbacks.py
  46. 10
      tests/test_tuples.py
  47. 10
      tests/test_tutorial/test_additional_responses/test_tutorial001.py
  48. 10
      tests/test_tutorial/test_additional_responses/test_tutorial002.py
  49. 10
      tests/test_tutorial/test_additional_responses/test_tutorial003.py
  50. 10
      tests/test_tutorial/test_additional_responses/test_tutorial004.py
  51. 10
      tests/test_tutorial/test_bigger_applications/test_main.py
  52. 10
      tests/test_tutorial/test_body/test_tutorial001.py
  53. 10
      tests/test_tutorial/test_body_fields/test_tutorial001.py
  54. 10
      tests/test_tutorial/test_body_multiple_params/test_tutorial001.py
  55. 10
      tests/test_tutorial/test_body_multiple_params/test_tutorial003.py
  56. 10
      tests/test_tutorial/test_body_nested_models/test_tutorial009.py
  57. 20
      tests/test_tutorial/test_body_updates/test_tutorial001.py
  58. 10
      tests/test_tutorial/test_cookie_param_models/test_tutorial001.py
  59. 10
      tests/test_tutorial/test_cookie_param_models/test_tutorial002.py
  60. 10
      tests/test_tutorial/test_cookie_params/test_tutorial001.py
  61. 10
      tests/test_tutorial/test_dataclasses/test_tutorial001.py
  62. 20
      tests/test_tutorial/test_dataclasses/test_tutorial003.py
  63. 10
      tests/test_tutorial/test_dependencies/test_tutorial001.py
  64. 10
      tests/test_tutorial/test_dependencies/test_tutorial004.py
  65. 10
      tests/test_tutorial/test_dependencies/test_tutorial006.py
  66. 10
      tests/test_tutorial/test_dependencies/test_tutorial012.py
  67. 10
      tests/test_tutorial/test_events/test_tutorial001.py
  68. 10
      tests/test_tutorial/test_events/test_tutorial003.py
  69. 10
      tests/test_tutorial/test_extra_data_types/test_tutorial001.py
  70. 10
      tests/test_tutorial/test_extra_models/test_tutorial003.py
  71. 10
      tests/test_tutorial/test_generate_clients/test_tutorial003.py
  72. 10
      tests/test_tutorial/test_handling_errors/test_tutorial001.py
  73. 10
      tests/test_tutorial/test_handling_errors/test_tutorial002.py
  74. 10
      tests/test_tutorial/test_handling_errors/test_tutorial003.py
  75. 10
      tests/test_tutorial/test_handling_errors/test_tutorial004.py
  76. 10
      tests/test_tutorial/test_handling_errors/test_tutorial005.py
  77. 10
      tests/test_tutorial/test_handling_errors/test_tutorial006.py
  78. 10
      tests/test_tutorial/test_header_param_models/test_tutorial001.py
  79. 10
      tests/test_tutorial/test_header_param_models/test_tutorial002.py
  80. 10
      tests/test_tutorial/test_header_param_models/test_tutorial003.py
  81. 10
      tests/test_tutorial/test_header_params/test_tutorial001.py
  82. 10
      tests/test_tutorial/test_header_params/test_tutorial002.py
  83. 10
      tests/test_tutorial/test_header_params/test_tutorial003.py
  84. 10
      tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py
  85. 10
      tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py
  86. 20
      tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py
  87. 20
      tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py
  88. 10
      tests/test_tutorial/test_path_params/test_tutorial004.py
  89. 10
      tests/test_tutorial/test_path_params/test_tutorial005.py
  90. 10
      tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial002.py
  91. 10
      tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial003.py
  92. 10
      tests/test_tutorial/test_pydantic_v1_in_v2/test_tutorial004.py
  93. 10
      tests/test_tutorial/test_query_param_models/test_tutorial001.py
  94. 10
      tests/test_tutorial/test_query_param_models/test_tutorial002.py
  95. 10
      tests/test_tutorial/test_query_params/test_tutorial005.py
  96. 10
      tests/test_tutorial/test_query_params/test_tutorial006.py
  97. 10
      tests/test_tutorial/test_query_params_str_validations/test_tutorial010.py
  98. 10
      tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py
  99. 10
      tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py
  100. 10
      tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py

10
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": {

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

10
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",
},
},
},
}

10
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": {

10
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",
},
},
},
}

10
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": {

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

10
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",
},
},
},
}

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

10
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": {

10
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",
},
},
},
}

10
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",
},
},
},
}

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

70
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",
},
},
},
}

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

10
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",
},
},
},
}

10
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",
},
},
},
}

10
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",
},
},
},
}

10
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": {

10
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": {

10
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": {

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

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

10
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",
},
},
},
}

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

10
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",
},
},
},
}

6
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"},
},
},
}

10
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": {

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

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

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

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

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

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

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

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

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

10
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",
},
},
},
}

10
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",
},
},
},
}

10
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",
},
},
},
}

10
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": {

10
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": {

10
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": {

10
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": {

10
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",
},
},
},
}

10
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",
},
},
},
}

10
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": {

10
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": {

10
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": {

10
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": {

10
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",
},
},
},
}

10
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": {

10
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": {

10
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": {

10
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": {

10
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": {

20
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": {

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

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

10
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": {

10
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",
},
},
},
}

20
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",
},
},
},
}

10
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": {

10
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": {

10
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": {

10
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",
},
},
},
}

10
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": {

10
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",
},
},
},
}

10
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": {

10
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": {

10
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",
},
},
},
}

10
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": {

10
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": {

10
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": {

10
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": {

10
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",
},
},
},
}

10
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": {

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

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

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

10
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": {

10
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": {

10
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",
},
},
},
}

10
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",
},
},
},
}

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

20
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": {

20
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": {

10
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": {

10
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",
},
},
},
}

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

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

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

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

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

10
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": {

10
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": {

10
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": {

10
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": {

10
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": {

10
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": {

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save