Browse Source

️ Revert changing OpenAPI for tests/test_tutorial/test_extra_models/test_tutorial003.py

pull/14864/head
Sebastián Ramírez 5 months ago
parent
commit
2d09c0c5d1
  1. 5
      tests/test_tutorial/test_extra_models/test_tutorial003.py

5
tests/test_tutorial/test_extra_models/test_tutorial003.py

@ -56,6 +56,7 @@ def test_openapi_schema(client: TestClient):
"content": {
"application/json": {
"schema": {
"title": "Response Read Item Items Item Id Get",
"anyOf": [
{
"$ref": "#/components/schemas/PlaneItem"
@ -63,7 +64,7 @@ def test_openapi_schema(client: TestClient):
{
"$ref": "#/components/schemas/CarItem"
},
]
],
}
}
},
@ -84,7 +85,7 @@ def test_openapi_schema(client: TestClient):
"parameters": [
{
"required": True,
"schema": {"type": "string"},
"schema": {"title": "Item Id", "type": "string"},
"name": "item_id",
"in": "path",
}

Loading…
Cancel
Save