]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🐛 Fix JSON Schema for `ValidationError` at field `loc` (#3810)
authordconathan <dconathan@gmail.com>
Sun, 17 Apr 2022 17:41:46 +0000 (12:41 -0500)
committerGitHub <noreply@github.com>
Sun, 17 Apr 2022 17:41:46 +0000 (19:41 +0200)
Co-authored-by: Devin Conathan <dconatha@amfam.com>
78 files changed:
fastapi/openapi/utils.py
tests/test_additional_properties.py
tests/test_additional_responses_custom_model_in_callback.py
tests/test_additional_responses_default_validationerror.py
tests/test_application.py
tests/test_dependency_duplicates.py
tests/test_extra_routes.py
tests/test_filter_pydantic_sub_model.py
tests/test_get_request_body.py
tests/test_include_router_defaults_overrides.py
tests/test_modules_same_name_body/test_main.py
tests/test_multi_body_errors.py
tests/test_multi_query_errors.py
tests/test_param_in_path_and_dependency.py
tests/test_put_no_body.py
tests/test_repeated_dependency_schema.py
tests/test_schema_extra_examples.py
tests/test_security_oauth2.py
tests/test_security_oauth2_optional.py
tests/test_security_oauth2_optional_description.py
tests/test_starlette_exception.py
tests/test_sub_callbacks.py
tests/test_tutorial/test_additional_responses/test_tutorial001.py
tests/test_tutorial/test_additional_responses/test_tutorial002.py
tests/test_tutorial/test_additional_responses/test_tutorial003.py
tests/test_tutorial/test_additional_responses/test_tutorial004.py
tests/test_tutorial/test_async_sql_databases/test_tutorial001.py
tests/test_tutorial/test_bigger_applications/test_main.py
tests/test_tutorial/test_body/test_tutorial001.py
tests/test_tutorial/test_body_fields/test_tutorial001.py
tests/test_tutorial/test_body_multiple_params/test_tutorial001.py
tests/test_tutorial/test_body_multiple_params/test_tutorial003.py
tests/test_tutorial/test_body_nested_models/test_tutorial009.py
tests/test_tutorial/test_body_updates/test_tutorial001.py
tests/test_tutorial/test_cookie_params/test_tutorial001.py
tests/test_tutorial/test_dataclasses/test_tutorial001.py
tests/test_tutorial/test_dataclasses/test_tutorial003.py
tests/test_tutorial/test_dependencies/test_tutorial001.py
tests/test_tutorial/test_dependencies/test_tutorial004.py
tests/test_tutorial/test_dependencies/test_tutorial006.py
tests/test_tutorial/test_dependencies/test_tutorial012.py
tests/test_tutorial/test_events/test_tutorial001.py
tests/test_tutorial/test_extra_data_types/test_tutorial001.py
tests/test_tutorial/test_extra_models/test_tutorial003.py
tests/test_tutorial/test_handling_errors/test_tutorial001.py
tests/test_tutorial/test_handling_errors/test_tutorial002.py
tests/test_tutorial/test_handling_errors/test_tutorial003.py
tests/test_tutorial/test_handling_errors/test_tutorial004.py
tests/test_tutorial/test_handling_errors/test_tutorial005.py
tests/test_tutorial/test_handling_errors/test_tutorial006.py
tests/test_tutorial/test_header_params/test_tutorial001.py
tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py
tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py
tests/test_tutorial/test_path_params/test_tutorial004.py
tests/test_tutorial/test_path_params/test_tutorial005.py
tests/test_tutorial/test_query_params/test_tutorial005.py
tests/test_tutorial/test_query_params/test_tutorial006.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial001.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial011.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial012.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py
tests/test_tutorial/test_request_files/test_tutorial001.py
tests/test_tutorial/test_request_files/test_tutorial002.py
tests/test_tutorial/test_request_forms/test_tutorial001.py
tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py
tests/test_tutorial/test_response_model/test_tutorial003.py
tests/test_tutorial/test_response_model/test_tutorial004.py
tests/test_tutorial/test_response_model/test_tutorial005.py
tests/test_tutorial/test_response_model/test_tutorial006.py
tests/test_tutorial/test_schema_extra_example/test_tutorial004.py
tests/test_tutorial/test_security/test_tutorial003.py
tests/test_tutorial/test_security/test_tutorial005.py
tests/test_tutorial/test_sql_databases/test_sql_databases.py
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware.py
tests/test_tutorial/test_sql_databases_peewee/test_sql_databases_peewee.py
tests/test_union_body.py
tests/test_union_inherited_body.py

index 58a748d04919facccfeed8e5f74a460d1633ba1b..4eb727bd4ffc2d291c8ac2be11999e3fee52c27b 100644 (file)
@@ -38,7 +38,11 @@ validation_error_definition = {
     "title": "ValidationError",
     "type": "object",
     "properties": {
-        "loc": {"title": "Location", "type": "array", "items": {"type": "string"}},
+        "loc": {
+            "title": "Location",
+            "type": "array",
+            "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
+        },
         "msg": {"title": "Message", "type": "string"},
         "type": {"title": "Error Type", "type": "string"},
     },
index 9e15e6ed06042a4797ba23267ccaadf8ae54df50..016c1f734ed1111943dbc22549f4cf8012b0c627 100644 (file)
@@ -76,7 +76,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 36dd0d6dbe39e5d5a627c572fb19944e031a96be..a1072cc5697edeeac5406e3b4624a298767587fc 100644 (file)
@@ -119,7 +119,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 6ea372ce8d696ba191a8fa19b295f532defe2970..cabb536d714bc7aa9a36a564f1406a6771402bfd 100644 (file)
@@ -54,7 +54,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 5ba7373075c063d3650cd9c4f29bef85582435de..d9194c15c7313e3feadc9100d48c720ccdcded0c 100644 (file)
@@ -1101,7 +1101,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 5e15812b6704227f16e909c9347092689ac17aaa..33899134e924bf46801637ed902a7faa516e886d 100644 (file)
@@ -177,7 +177,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 6aba3e8dda535ea297bf490079ae2794e6f3b667..8f95b7bc99638a444b93ab2bbf982efa7d363b2c 100644 (file)
@@ -292,7 +292,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 90a372976313e0f32170c1dc8dac1967ac438d0a..8814356a10e7963384b0963c129704b564b7d3e7 100644 (file)
@@ -116,7 +116,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index b12f499ebcf6ac0d8837ac4486972ee5c11364ef..88b9d839f5a6b4ab53c888ab96042845908fd062 100644 (file)
@@ -85,7 +85,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 5dd7e7098d6ae0f4a6ccc904997c551e18e34089..ccb6c7229d37f2f2097d651fa90be577944e7c4c 100644 (file)
@@ -6612,7 +6612,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index b0d3330c72b2cba7ac1c32f121ef4843bfb932ad..8b1aea03164930e3254d23dc69baf18778a9e8a5 100644 (file)
@@ -101,7 +101,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index c1be82806ebd1329bdf6b5778232ad39b653b88a..31308ea85cdbcd2f7603fa2d73b31a87516569fa 100644 (file)
@@ -79,7 +79,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 69ea87a9b65ccb02527197698a297491dda66f28..0a15833fa0ee967ba7fc89292508bf0735d0e90b 100644 (file)
@@ -63,7 +63,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 0a94c2151316d44b9a91ecc37fe8a41c63b0b594..4d85afbceef2aede708d90e3255b30cb68469f3c 100644 (file)
@@ -71,7 +71,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 1c2cfac891f520e4a1fb7ea15d7dcced206469ae..3da294ccf735f4c58622bbd779305a1ba3c08ac6 100644 (file)
@@ -57,7 +57,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index fd616e12ad16738c243838fd3972fa44e74ca5c1..00441694ee18a6a4b22f3e241a899136b53b54d9 100644 (file)
@@ -36,7 +36,7 @@ schema = {
             "ValidationError": {
                 "properties": {
                     "loc": {
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                         "title": "Location",
                         "type": "array",
                     },
index 3e0d846cd30b658821d07152181ebaa29987832a..444e350a86a165be35e82b5ab4458dbb80e8af42 100644 (file)
@@ -830,7 +830,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index b7ada7caf2edccc1d385365a64646cb63a08fe6b..b9ac488eea545a6d98cca217e8b3b132edb07672 100644 (file)
@@ -117,7 +117,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index ecc7665113fe99fc5e4776ee4757775877f8d59f..a5fd49b8c7a7a7df672eb2f4844faa3f6dbe0417 100644 (file)
@@ -121,7 +121,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 011db65ecb3d2884172f992991ec69532f6f91b3..171f96b762e7f27004f2da14183d359b52d23382 100644 (file)
@@ -122,7 +122,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 5759a93f4ea6e9900b69c19ee652c98cd54e6187..859169d3cdad8d7ebe6275976793d1665f1ca95d 100644 (file)
@@ -102,7 +102,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 16644b5569d1324e486658d9a892aff778cf2be1..7574d6fbc5fb2f190bf9754846fd26b7e0477dfd 100644 (file)
@@ -256,7 +256,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 8342dd787d54e7eef2e80eb82f907d28703a121f..1a8acb523154f576ff17270c74a0de21d30a781a 100644 (file)
@@ -76,7 +76,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 57f8779789b869d3100a9ad5456aca1d2a4274f1..2adcf15d07f5121c4dc147ede5a58c0bf07cb9c3 100644 (file)
@@ -72,7 +72,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 37190b36a7ec9ca158e03cf981f109f79efe1bb8..8b2167de0513c379e953358d41da6a669649d85c 100644 (file)
@@ -77,7 +77,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index c44a18f689742d9490b38eec3e5ea91a6bfc1b49..990d5235aa1049786dcebd4a449aefb78dd75cda 100644 (file)
@@ -75,7 +75,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 90feb0172aac6c5007d3c1846ffc424769b253a2..1ad625db6a7a63ce970bc021b3df5f115f66ab46 100644 (file)
@@ -88,7 +88,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 7eb675179eb009366b3ad6d7c8f906f88e36cfe1..cd6d7b5c8b0d94af13beafa9b7df77f81fd3b1cf 100644 (file)
@@ -323,7 +323,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 7bf62c907db79a7e5f96fcc22b0214ceabd7984c..8dbaf15dbef06a2cc99e7faeb503003884104e3a 100644 (file)
@@ -63,7 +63,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 9de4907c247836fd47c56322c83f82d55568117e..fe5a270f3611d4d2a724b1eff7b04872a45d06e2 100644 (file)
@@ -87,7 +87,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index b11ecddabe2fe94cfc874ed2909997944e63f761..8dc710d7551830691408ed0c409ef24bb6d8a5f2 100644 (file)
@@ -79,7 +79,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index d98e3e4199d09114a24d2417208ae58eb6efbbd7..64aa9c43bf3f3da7d631dd2ccd0c5b5b05b94b68 100644 (file)
@@ -90,7 +90,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 8eb0ad1308aae62bdc02dd812f51c5c984688ffc..c56d41b5bf795b5e20932fea8f6d79d492580386 100644 (file)
@@ -53,7 +53,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 5e92ef7eaeccf0dbf1f82c4eb0baeb3e6972008e..efd0e46765369d0e2418581e606ad06d4b860fb3 100644 (file)
@@ -109,7 +109,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 3451dc19ec080d27cd8c78b9576aa60a4ed470cd..edccffec1e87eabc4fd6bdcbd2f3d17e2c00d7c6 100644 (file)
@@ -50,7 +50,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 3e3fc9acf65d1246a36ee75dbd07385c144d8ca9..bf156419492457b437dea735c1317a01eefa0d99 100644 (file)
@@ -71,7 +71,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index dd0f1f2c0da5909a73cd2fee26e223d43b928b8c..2d86f7b9abe89b9486f0b010e97045fd8dd5d73c 100644 (file)
@@ -118,7 +118,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 8b53157cd648267a246ebc2b4647df1be847dc35..c3bca5d5b3b0c09d4c844112b9caeaf677b4252b 100644 (file)
@@ -104,7 +104,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index eb21f65241ab1c661e84ddc6f8f24c6da1fefc24..f2b1878d5413fcd8a1f95241f862a44c71f74261 100644 (file)
@@ -62,7 +62,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index c08992ec8df246f3a081f06486248dbdc742932d..2916577a2acb2a573367dbe82a2da60e0dea9343 100644 (file)
@@ -55,7 +55,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index ada83c62602465ada01ff19879efd0a3187c66ff..e4e07395dff4b85e8371805d83258e6c0cb415a9 100644 (file)
@@ -102,7 +102,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index e3587a0e88ffc7c49b02f5014110e2f6dc5fcea1..d52dd1a047123687bf52e4c1cf9c1e1bf9de0c4d 100644 (file)
@@ -47,7 +47,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 68b7d61dc698ee9cd8806f5f19bc1515ad1c7aeb..8522d7b9d7d5a2d99274211ce62196fe01725742 100644 (file)
@@ -89,7 +89,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index a2a325c77082a4acf30d2bb39f62e7b6bd9891c4..f1433470c1ad9d2d9349704a1609acbd2ea0e101 100644 (file)
@@ -78,7 +78,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 6b62293d8ffd3084c1a5aa94650385fc6581b27a..ffd79ccff3a6c02fb20c8426fbb6277c4763cf03 100644 (file)
@@ -49,7 +49,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index d2ce0bf9dd4c13078c91eddf8940c34b9cad90e0..e678499c63a2b26bdcb42018d211df94a04dba40 100644 (file)
@@ -49,7 +49,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index ca9d94e3cedde585db00b60befe8457466f9db1b..a01726dc2d39950606eb25c1098e7cc348fd7d53 100644 (file)
@@ -49,7 +49,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index d95debf378a842ceaf2518cda8d6dbdc83824eeb..0b5f747986cf79d46072195de3d3813c490db7a2 100644 (file)
@@ -49,7 +49,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index cedcaae704969c122bd274a73db019aad7c02e4f..253f3d006a7c5526cad3287211d334c723802db3 100644 (file)
@@ -69,7 +69,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 8b6c1e7eda9c8441f5467613da18741eeb7b2e01..21233d7bbf41555acd3e5a8cc785295f1096272c 100644 (file)
@@ -49,7 +49,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 0f05b9e8c887ba9818636e9aec2e9f8a4990db00..273cf3249ee44db85edf9539c9306fe830485751 100644 (file)
@@ -51,7 +51,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index b30427d08eddfb91bb049176d15f740351216cc2..e773e7f8f550f5e2a2030015d228490ea01f0141 100644 (file)
@@ -143,7 +143,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index f2ec2c7e5eaa035c4ec49cb6a7c3405202be4d27..456e509d5b76a62e7255548f7af268e6ccda3645 100644 (file)
@@ -72,7 +72,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index d2164094603d6b5183fcd78c78c68e25b97a619c..e587519a005344b5f509f1078254a0db7f37fcd2 100644 (file)
@@ -72,7 +72,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 131bf773be567f8d6435f6fd6a9220685511a960..7f0227ecfb5472bb7b911ea8142a7c28e97d33bd 100644 (file)
@@ -49,7 +49,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index ed9d2032b3a83cf2360ec81ef4c1f5ec176ff07c..eae3637bed587504a0ff1adc6265be8f98d49211 100644 (file)
@@ -54,7 +54,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
@@ -138,7 +138,7 @@ openapi_schema2 = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index aabc0af4f9e373f687b12878ceb3c847363e2db9..07178f8a6e814ca9db7b73cbed494c6c97f98cb7 100644 (file)
@@ -56,7 +56,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 042a0e1f8360e349bfe2795473cfad995d045ade..73c5302e7c7e51ea19252a740e05cb89db58dd77 100644 (file)
@@ -68,7 +68,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 709bf69569eb1a1c4c06e2c35b54a05904674aaf..f8d7f85c8e6cb20df11949b4d64d93d58ec8348a 100644 (file)
@@ -59,7 +59,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 6ae10296f457337319388fb6dbe50e00be884565..ad3645f314eadedbde2c84446047d4f7506b501b 100644 (file)
@@ -53,7 +53,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 724c975f8aad991de96cfae6a876122a647f6dbf..d69139dda52034ac2115936430bf6b25a3e5e933 100644 (file)
@@ -54,7 +54,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index ad559791316ecf283e729f9c704a80196c85baca..1b2e363540a12786f5b2b2b875b8ea565e1b48eb 100644 (file)
@@ -54,7 +54,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 841116e30b673dbbcc36e75bb7856479a23147dc..166014c71fc780d5c2161e815495b49d221ba773 100644 (file)
@@ -99,7 +99,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 4e33ef464dd7de1c4e2f76b44f176a496d9b8b76..73d1179a1c2cfe04eb767c3d0fbd64772adf3d05 100644 (file)
@@ -119,7 +119,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 3d271b5319763e0376658833bba1827f623ed4e4..215260ffa98948dd3c534e1990c4430a0e9db561 100644 (file)
@@ -61,7 +61,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 10cce5e61284a736e23c5c7565eb174e8edf24c5..09e232b8e5cba650216fb5eb583c5e505a035df6 100644 (file)
@@ -61,7 +61,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 44f2fb7ca42b34005def7fcc53a5f9034c9074be..e1bde5d1335f3778bba22aea1d97df4e7196ea31 100644 (file)
@@ -74,7 +74,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 19303982b9efa2a7003845351af917730bef5995..8c98c6de3088cbacf8d44825a4b6b7f44719f220 100644 (file)
@@ -71,7 +71,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 9ca5463e64fe159e39e2fe42675e06730fc7165e..476b172d3d69c1abb9452e6d53144ac129b3962e 100644 (file)
@@ -98,7 +98,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 25eb6e333f88a45acf527404e8f853e4312dbd8a..38eb31e54f7b4e760b1ff2b0b71bcc2bcf755dfb 100644 (file)
@@ -98,7 +98,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 89f5b66fd68624538aa8a667122f8afbbee7a2f9..badf66b3d132d70a9d3f57a0b1a759a38b880f1b 100644 (file)
@@ -103,7 +103,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 3fc7f5f40f49f8f18c07b2ff891382ade4b3084e..5951078343c67e9940f8996fdab9e6a6c08d5584 100644 (file)
@@ -81,7 +81,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index a37f2d60acd5c5c54da55363cb415873cf0e3a4b..e8697339ff1593ea23654439c5bb676918192601 100644 (file)
@@ -141,7 +141,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index c88fd0bcdc30a8eba292ae30c4e75c3aa1f1fc2a..09304ff8780a7bf4a6dbeab203438620a97e2485 100644 (file)
@@ -261,7 +261,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index b02e1c89ed9226b0595376384b7c0140d7f3ec92..fbaa8938a46d160322fae5484e9d3f380800a0bd 100644 (file)
@@ -260,7 +260,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index 2ebc31b95319723941910bdbeadcf40d9184f3d9..d28ea5e7670d3b7ccafa8263b74de3643874a766 100644 (file)
@@ -318,7 +318,7 @@ openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index d1dfd5efbad2c5534b45abd5d924aa25f79eb7d7..3e424de07d1c865d70caedda64b6f77290d52a79 100644 (file)
@@ -84,7 +84,7 @@ item_openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},
index e3d0acc99d49c86a50c972007623e9fec72f3385..60b327ebcc0370d69288611c953951f164e1e83d 100644 (file)
@@ -96,7 +96,7 @@ inherited_item_openapi_schema = {
                     "loc": {
                         "title": "Location",
                         "type": "array",
-                        "items": {"type": "string"},
+                        "items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
                     },
                     "msg": {"title": "Message", "type": "string"},
                     "type": {"title": "Error Type", "type": "string"},