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
A valid Swagger UI index.html will be created when API versioning is enabled.
Actual Behaviour
Wenn API versioning is enabled the generated Swagger UI contains an invalid SwaggerUIBundle configuration so that the browser show an empty site cause by a JavaScript error ("Uncaught SyntaxError: Unexpected number").
Steps To Reproduce
Create micronaut application with versioned API, OpenAPI config and a simple controller (see example application)
Run ./gradlew run
Goto http://localhost:8080/swagger-ui/
Open browser console an see the error: Uncaught SyntaxError: Unexpected number
Expected Behavior
A valid Swagger UI
index.html
will be created when API versioning is enabled.Actual Behaviour
Wenn API versioning is enabled the generated Swagger UI contains an invalid
SwaggerUIBundle
configuration so that the browser show an empty site cause by a JavaScript error ("Uncaught SyntaxError: Unexpected number"
).Steps To Reproduce
./gradlew run
http://localhost:8080/swagger-ui/
Uncaught SyntaxError: Unexpected number
Environment Information
Operating System: Ubuntu 23.10
JDK Version: 21.0.1-zulu
Example Application
https://github.com/davidsonnabend/micronaut-swaggerui-versioned-api-bug
Version
4.2.0
The text was updated successfully, but these errors were encountered: