mirror of https://github.com/tiangolo/fastapi.git
Fix broken test: use 'items.AnyOf... (integer, string)' instead of 'items.type: string' in openapi schema
This commit is contained in:
parent
0371561abe
commit
df62c9c1b1
|
|
@ -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"},
|
||||
|
|
|
|||
Loading…
Reference in New Issue