-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger losing context-path in 4.6.x #1774
Comments
@wmunyan Looks to the generated files in 6.11.1 and 6.12.3. As you see, paths are the same: Hmmm... can't reproduce this bug with your sample - all works fine with In second case with But in both cases I see that swagger-ui works correctly, both with version 6.11.1 and with version 6.12.3. Perhaps I did not understand what the problem is, but then please formulate the problem in more detail. |
Oh, sorry, I see now. The problem with endpoints... not with swagger-ui. Ok, I'll fix it |
Expected Behavior
I expect to see the swagger output including the context-path for all the controllers
Actual Behaviour
From Post on Discord:
In one configuration I was able to see the swagger-ui, but the endpoints shown did not include the context-path
In other configurations I just got a blank page for the swagger-ui, and investigating the
index.html
page, I saw the context-path doubled, i.e./wkm/api/wkm/api/...
Steps To Reproduce
Project is here - https://github.com/wmunyan/heartbeat - It's got some other things in there, that I've been experimenting with so a lot of the OpenAPI/Swagger stuff is just cut/paste from Micronaut documentation
I've been running the application through my IDE (IntelliJ) using:
gradlew clean assemble
to build the application and generate the swaggerEnvironment Information
Example Application
https://github.com/wmunyan/heartbeat
Version
4.6.x
The text was updated successfully, but these errors were encountered: