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
We're using swagger-ui-react at our organization, and I think we uncovered a bug.
The spec isn't rendered on the first mount of the SwaggerUI component, even though the props are being passed in.
The UI just says No API definition provided.
I've matched the react app versions as well (15.x, 16.x and 17.x).
I've tried the stable/beta/alpha releases. With the corresponding React versions.
componentDidUpdate in swagger-ui-react now uses current/prev props comparisons along with comparisons with current redux state. This guarantees that swagger-ui-react will rerender whenever needed.
Q&A (please complete the following information)
Describe the bug you're encountering
Hey Guys!
We're using
swagger-ui-react
at our organization, and I think we uncovered a bug.The spec isn't rendered on the first mount of the
SwaggerUI
component, even though the props are being passed in.The UI just says
No API definition provided.
I've matched the react app versions as well (15.x, 16.x and 17.x).
I've tried the stable/beta/alpha releases. With the corresponding React versions.
Screenshots attached!
Swagger-UI configuration options:
where
selectedSpec.spec
refers to the plain string YAML spec.Expected behavior
The first mount should render the spec (second image).
Screenshots
First Mount:
Second:
The text was updated successfully, but these errors were encountered: