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

Loading…
Cancel
Save