|
|
|
@ -55,7 +55,7 @@ def test_enum_status_code_response(): |
|
|
|
def test_openapi_schema(): |
|
|
|
response = client.get("/openapi.json") |
|
|
|
assert response.status_code == 200, response.text |
|
|
|
assert response.json()== { |
|
|
|
assert response.json() == { |
|
|
|
"openapi": "3.1.0", |
|
|
|
"info": {"title": "FastAPI", "version": "0.1.0"}, |
|
|
|
"externalDocs": { |
|
|
|
@ -1517,9 +1517,7 @@ def test_openapi_schema(): |
|
|
|
"detail": { |
|
|
|
"title": "Detail", |
|
|
|
"type": "array", |
|
|
|
"items": { |
|
|
|
"$ref": "#/components/schemas/ValidationError" |
|
|
|
}, |
|
|
|
"items": {"$ref": "#/components/schemas/ValidationError"}, |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|