Fix broken test: use 'items.AnyOf... (integer, string)' instead of 'items.type: string' in openapi schema

This commit is contained in:
Pavel Knyazev 2022-12-08 19:47:11 +03:00
parent 0371561abe
commit df62c9c1b1
1 changed files with 6 additions and 1 deletions

View File

@ -124,7 +124,12 @@ 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"},