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
on a osgi framework, but i can't load with success a SwaggerUI/SwaggerUIBunlde javascript object .
I obviously have forced the html to use the original reosurces of SwaggerUI under the "dist" folder instead (but the are the same) resources under the "webjars" library for maven.
The error i get on the client console i sthe following:
@p4535992, you're mixing a lot of Swagger UI 2.0 and 30 syntax — for example, SwaggerTranslator is not in 3.0, SwaggerClient.ApiKeyAuthorization is not in 3.0, window.swaggerUi.api.clientAuthorizations.add will no longer work, and window.swaggerUi.load() no longer exists.
I'm not sure what's causing the Invariant Violation, but as a first move I'd recommend making a fresh go at your HTML based on ours in dist/index.html.
Thank you @josemigallas. Can't think of a reason which made (CRA?) developers to build their contraptions a way which rendered such a simple mistake so difficult to investigate.
Information
Content & configuration
Swagger-UI configuration options:
Screenshots
How can we help?
Hi this ticket is related to the ticket
#3955
I'm trying to use this project:
https://github.com/Code-House/karaf-swagger
on a osgi framework, but i can't load with success a SwaggerUI/SwaggerUIBunlde javascript object .
I obviously have forced the html to use the original reosurces of SwaggerUI under the "dist" folder instead (but the are the same) resources under the "webjars" library for maven.
The error i get on the client console i sthe following:
Any idea way i get this error or a workaround for it?
The text was updated successfully, but these errors were encountered: