]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✅ Fix new/recent tests with new fixed `ValidationError` JSON Schema (#4806)
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 17 Apr 2022 20:55:36 +0000 (22:55 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Apr 2022 20:55:36 +0000 (20:55 +0000)
45 files changed:
tests/test_generate_unique_id_function.py
tests/test_param_include_in_schema.py
tests/test_tuples.py
tests/test_tutorial/test_body/test_tutorial001_py310.py
tests/test_tutorial/test_body_fields/test_tutorial001_py310.py
tests/test_tutorial/test_body_multiple_params/test_tutorial001_py310.py
tests/test_tutorial/test_body_multiple_params/test_tutorial003_py310.py
tests/test_tutorial/test_body_nested_models/test_tutorial009_py39.py
tests/test_tutorial/test_body_updates/test_tutorial001_py310.py
tests/test_tutorial/test_body_updates/test_tutorial001_py39.py
tests/test_tutorial/test_cookie_params/test_tutorial001_py310.py
tests/test_tutorial/test_dependencies/test_tutorial001_py310.py
tests/test_tutorial/test_dependencies/test_tutorial004_py310.py
tests/test_tutorial/test_extra_data_types/test_tutorial001_py310.py
tests/test_tutorial/test_extra_models/test_tutorial003_py310.py
tests/test_tutorial/test_generate_clients/test_tutorial003.py
tests/test_tutorial/test_header_params/test_tutorial001_py310.py
tests/test_tutorial/test_path_operation_configurations/test_tutorial005_py310.py
tests/test_tutorial/test_path_operation_configurations/test_tutorial005_py39.py
tests/test_tutorial/test_query_params/test_tutorial006_py310.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial001_py310.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial011_py310.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial011_py39.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial012_py39.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py
tests/test_tutorial/test_query_params_str_validations/test_tutorial014_py310.py
tests/test_tutorial/test_request_files/test_tutorial001_02.py
tests/test_tutorial/test_request_files/test_tutorial001_02_py310.py
tests/test_tutorial/test_request_files/test_tutorial001_03.py
tests/test_tutorial/test_request_files/test_tutorial002_py39.py
tests/test_tutorial/test_request_files/test_tutorial003.py
tests/test_tutorial/test_request_files/test_tutorial003_py39.py
tests/test_tutorial/test_response_model/test_tutorial003_py310.py
tests/test_tutorial/test_response_model/test_tutorial004_py310.py
tests/test_tutorial/test_response_model/test_tutorial004_py39.py
tests/test_tutorial/test_response_model/test_tutorial005_py310.py
tests/test_tutorial/test_response_model/test_tutorial006_py310.py
tests/test_tutorial/test_schema_extra_example/test_tutorial004_py310.py
tests/test_tutorial/test_security/test_tutorial003_py310.py
tests/test_tutorial/test_security/test_tutorial005_py310.py
tests/test_tutorial/test_security/test_tutorial005_py39.py
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py39.py
tests/test_tutorial/test_sql_databases/test_sql_databases_py310.py
tests/test_tutorial/test_sql_databases/test_sql_databases_py39.py

index ffc0e3844003655bca1c4a0113f66a886ae3e762..0b519f8596f5bf7ee53103adc8d550ce1fb62540 100644 (file)
@@ -217,7 +217,9 @@ def test_top_level_generate_unique_id():
                         "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"},
@@ -416,7 +418,9 @@ def test_router_overrides_generate_unique_id():
                         "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"},
@@ -615,7 +619,9 @@ def test_router_include_overrides_generate_unique_id():
                         "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"},
@@ -887,7 +893,9 @@ def test_subrouter_top_level_include_overrides_generate_unique_id():
                         "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"},
@@ -1089,7 +1097,9 @@ def test_router_path_operation_overrides_generate_unique_id():
                         "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"},
@@ -1295,7 +1305,9 @@ def test_app_path_operation_overrides_generate_unique_id():
                         "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"},
@@ -1579,7 +1591,9 @@ def test_callback_override_generate_unique_id():
                         "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 4eaac72d87e503e168a781b1875eadb8116e93dc..26aa6389716447f140b8a5b4f7f0ce3693ca8524 100644 (file)
@@ -149,7 +149,7 @@ openapi_shema = {
                     "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 4cd5ee3afbe05cbfa7c331246ab565ed9fe5efd2..2085dc3670eed40d54be27a22af6ef67dc17b25f 100644 (file)
@@ -200,7 +200,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 e292b53460a1a1bebe2a3c138ab9f6fac205e6d0..dd9d9911e402c3fa4745d66113777f86af91ff7d 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 d7a525ea790b106378a471cb7470cad4d0081da8..993e2a91d28367dccc212127d630621ad501d3e9 100644 (file)
@@ -84,7 +84,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 85ba41ce61b4d64d7d7b4e2172b4883128d0b159..5114ccea29ff03f27bc188a648c9fed00bfde028 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 f896f7bf554589d4fbbe8959d06a0400d7da5fc5..fc019d8bb4b1626a6194ef8893668ded13df9afb 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 17ca29ce5002d74ceffe3fb2e6e6b8b72b4d2d12..5b8d8286120a0e15a1c5e88ca432a09d2021efd6 100644 (file)
@@ -52,7 +52,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 ca1d8c585eb02f3dba4c90797af911341048e1cc..49279b3206f8f2c34b27ea46acc9dff228b5102f 100644 (file)
@@ -108,7 +108,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 f2b184c4f8c7816315681313c87bf7f7441f6988..872530bcf92863227cf9e0bc9576ddd0b9c47288 100644 (file)
@@ -108,7 +108,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 587a328da68cfa3e60979069bad5b1dc2aa7c243..5caa5c440039eeea7973e909c68c66d8f4bbdb08 100644 (file)
@@ -48,7 +48,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 a7991170e838302890692440633ebd95f4e74dcc..32a61c8219f8ed23f39c9b6d71a134517243b66c 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 f66a36a997a2cd9c523d9cba1e33d407b3bede44..e3ae0c7418166ab42f8b4c0c8fb399efab34e353 100644 (file)
@@ -60,7 +60,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 3d4c1d07d6008e2d00c5b3781969daa1718c6372..4efdecc53ad2e1309c28c5785968d8eafa856fbc 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 185bc3a374010a057c06768966382c985251e8aa..56fd83ad3a24d12c090e54c1b938f2de868d3206 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 d79123163656d19168fa231fea5685c4700b9da9..128fcea3094dd8ae8f27a1d7b5ceb4b3828eb776 100644 (file)
@@ -147,7 +147,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 f5ee17428d4f1fbb216a347bbc3fd974fd6c914f..77a60eb9db976415f5b432a5fa6aef6e4d027d34 100644 (file)
@@ -48,7 +48,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 1f617da70c70fd7a77487ab28be202a1ace4486e..43a7a610de8444988ef65873e7e32db5d5ab6a32 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 ffdf050812cc4b11ab0440eada80cd73dedae37b..62aa73ac528c7b144a8f887d718d07a8484fce2b 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 1986d27d033566eb004d50eaf7743703ff2f2afb..141525f15ff79a013422ee473f83e7db0bbe4d09 100644 (file)
@@ -66,7 +66,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 66b24017edef52e969123af42673c7efecf47f4c..298b5d616ccec2a6b0a5d28586f5100dddeee981 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 8894ee1b5d242387bcf3c26225d5434973ae0fed..9330037eddf07f26b6e3ecf33d09af9793d44e8d 100644 (file)
@@ -52,7 +52,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 b10e70af76d53fce00b7fb6ee6eadc0575beb713..11f23be27c80f8ff531254c5096de420507171e6 100644 (file)
@@ -52,7 +52,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 a9cbce02a4f91b8ed6e93e65ec774107cf2b676b..b25bb2847fabfa71a494065dbe7b0194aa87775b 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 98ae5a6842d4d59c2dbd6643cd979784806dd39a..57b8b9d946abc462db896cd1e9049c9f6d2fc5f7 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 33f3d5f773c4cad21a22f1deb428fc34fb3a66bf..fe54fc080bb677fce7dfde4ae5db5d5741bccfd2 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 e852a1b31336b42f38b6426ec1bf1e89ea2371e4..a254bf3e8fcd9900d2280fef0c2e5217969bf476 100644 (file)
@@ -106,7 +106,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 62e9f98d0bf35b3b2f4065ab86687eea0158a119..15b6a8d53833a7180a1249deb27c71e7974c3afd 100644 (file)
@@ -107,7 +107,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 ec7509ea296247313d35d559d07f63c21a52d3b0..c34165f18e76d0f6b2efa9e66bec6eb4dad70786 100644 (file)
@@ -120,7 +120,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 bbdf25cd962fb7d286c8ce93f9fc30baf9e59b7d..de4127057d1a7f1e52f181b3c031550384a4f33d 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 943b235ab88ab99e62ebed95dbbc1b380a64fdab..83aea66cddb639533325a7570cdf99e2dbda34ee 100644 (file)
@@ -132,7 +132,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 d5fbd78899c5e76d9816765a8d7cd5f74f0de61b..56aeb54cd10c6690aec39b1c25e5d6ad722b5a1f 100644 (file)
@@ -132,7 +132,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 ffba11662757db81d9e2f2eb1c4b1863c598d9d3..9827dab8a31b6bf7f7d3d5dcbccff2dd30ddcb29 100644 (file)
@@ -73,7 +73,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 f1508a05d47e12adf8cb2ea92d7b33238d91f819..7fc86fafab8b00a49527238848e9002c06ca0394 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 e5d9c8b5fce004be7e75d4cc614572accee6271b..405fe79f50aa52fec5656f9fc707e2658b71d54d 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 6d7366f1260dea411e79eeee71b1a8c036229fff..389a302e08d62da1670459ff43eff50251406551 100644 (file)
@@ -97,7 +97,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 a3d8d204ef2e228ea5666e6bd6c54b05d78e9ce3..f870f39261e59bcc682a2e4dae57760150350c09 100644 (file)
@@ -97,7 +97,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 4f9a2ff5763937f7eeacf3e022a1b120b7637c44..d326a5a092e3feb170d6ca8b173d1b3dc4b31ce5 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 e621bcd450d392ab3a1ce21363313195b1377ac0..26f5c097ffcb99a21072e1cb863ca9df0b201237 100644 (file)
@@ -80,7 +80,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 0c9372e2a70e93c30dff0d9201bc5e5bae10df7a..3144a2365719130fe3d9403b9dff5ff13e2e0049 100644 (file)
@@ -134,7 +134,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 099ab2526a13b18cf8417b50ecb2475129f4b805..290136e179ace76ea0f6e216a2b3002fa7c8a750 100644 (file)
@@ -134,7 +134,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 1d0442eb5497779c94c6a6ccc52d2ebe31654aeb..d131b4b6a9495abb5e9c1418cf28c334f00121b4 100644 (file)
@@ -263,7 +263,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 8764d07a685f60839b183309ca156cdff8dd6ba8..470fb52fd5d90c94a7d82e30eaa2a99fb1b07994 100644 (file)
@@ -263,7 +263,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 f7e73dea4814aafadee87157dadbd2bc4ba47738..dc6a1db157ebc055cb2948b4b73024077bb08bf9 100644 (file)
@@ -263,7 +263,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 c194c85aa170fefed3d437506f2bfb84bf0b3d9e..ebf55ed0152e0640169fe726c6b306d91156d941 100644 (file)
@@ -263,7 +263,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"},