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
So this is related to the fact that we're trying to render (forcing with configuration) a component that it's not event accessible from standard UI workflow.
Sensible thing to do would be ignoring defaultModelRendering=model when there is no schema.
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
Swagger UI tries to render schemas when no schema has been provided, if
defaultModelRendering
is set tomodel
. This causes errors:and renders the
Could not render ModelWrapper
message:If we switch to the example tab, we will correctly not be able to switch back to schema:
To reproduce...
Steps to reproduce the behavior:
defaultModelRendering
set tomodel
GET /
operationCould not render ModelWrapper
message and errors in consoleExpected behavior
Swagger UI should not render the schema tab if no schema has been provided.
The text was updated successfully, but these errors were encountered: