You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One component schema (item2 in example) includes another (item1 in example) as a sub-object in its definition. The item2 schema resolves correctly in the "Schemas" section of the preview, but the reference to item1 defaults to "string" rather than displaying the sub-object in the route response example textbox when added as a $ref. Adding the item2 schema directly rather than referencing it produces the expected result.
Q&A (please complete the following information)
"swagger-ui-react": "^4.15.5"
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
// n/a
Describe the bug you're encountering
One component schema (item2 in example) includes another (item1 in example) as a sub-object in its definition. The item2 schema resolves correctly in the "Schemas" section of the preview, but the reference to item1 defaults to "string" rather than displaying the sub-object in the route response example textbox when added as a $ref. Adding the item2 schema directly rather than referencing it produces the expected result.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
The response example text for item2CollectionNotRendered and item2CollectionRenderd to match.
Screenshots
Additional context or thoughts
Directed here by extension project: 42Crunch/vscode-openapi#222
The text was updated successfully, but these errors were encountered: