|
|
@ -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", |
|
|
|