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
I'm using swagger-ui-react 5.18.2 passing a spec to display through the spec attribute of a SwaggerUI component.
Some time after I upgraded from 4.18.1 of swagger-ui-react I've started noticing an error messages like the one below, when trying to render a spec that contains a circular reference:
Resolver error at components.schemas.Pet.properties.children.$ref Could not resolve reference: Failed to fetch
It looks like SwaggerUI tries to do a fetch() with a URL of a page where the component is being used, and fails. (There is no URL for the spec available, as the url parameter is not used.)
I'm attaching an OpenAPI in question and a screenshot of the UI with the error message. The error is shown when the "Pet" schema is expanded.
I'm using swagger-ui-react 5.18.2 passing a spec to display through the
spec
attribute of a SwaggerUI component.Some time after I upgraded from 4.18.1 of swagger-ui-react I've started noticing an error messages like the one below, when trying to render a spec that contains a circular reference:
Resolver error at components.schemas.Pet.properties.children.$ref Could not resolve reference: Failed to fetch
It looks like SwaggerUI tries to do a fetch() with a URL of a page where the component is being used, and fails. (There is no URL for the spec available, as the
url
parameter is not used.)I'm attaching an OpenAPI in question and a screenshot of the UI with the error message. The error is shown when the "Pet" schema is expanded.
recursive-petstore-example.yaml.txt
The text was updated successfully, but these errors were encountered: