Browse Source

Update test added in regression

pull/14246/head
Sebastián Ramírez 9 months ago
parent
commit
2c1702caa6
  1. 15
      tests/test_pydantic_v1_v2_multifile/test_multifile.py

15
tests/test_pydantic_v1_v2_multifile/test_multifile.py

@ -1028,17 +1028,6 @@ def test_openapi_schema():
"type": "object", "type": "object",
"title": "HTTPValidationError", "title": "HTTPValidationError",
}, },
"SubItem-Output": {
"properties": {
"new_sub_name": {
"type": "string",
"title": "New Sub Name",
}
},
"type": "object",
"required": ["new_sub_name"],
"title": "SubItem",
},
"ValidationError": { "ValidationError": {
"properties": { "properties": {
"loc": { "loc": {
@ -1113,11 +1102,11 @@ def test_openapi_schema():
"title": "New Description", "title": "New Description",
}, },
"new_sub": { "new_sub": {
"$ref": "#/components/schemas/SubItem-Output" "$ref": "#/components/schemas/tests__test_pydantic_v1_v2_multifile__modelsv2__SubItem"
}, },
"new_multi": { "new_multi": {
"items": { "items": {
"$ref": "#/components/schemas/SubItem-Output" "$ref": "#/components/schemas/tests__test_pydantic_v1_v2_multifile__modelsv2__SubItem"
}, },
"type": "array", "type": "array",
"title": "New Multi", "title": "New Multi",

Loading…
Cancel
Save