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
In the example project there are two endpoints a get and a post and the get response and the post body have different objects with different properties, but as the attribute name is the same the rendering is done incorrectly, let's look at swagger .yaml that I used as input to generate the code:
As you can see, it appears that the Spring docs try to deduplicate items with the same names and this means that in the post where we should see exampleTwo we see exampleOne
Extra information
Spring Boot 3.4.0
Spring Docs 2.7.0
The text was updated successfully, but these errors were encountered:
Describe the bug
In the example project there are two endpoints a get and a post and the get response and the post body have different objects with different properties, but as the attribute name is the same the rendering is done incorrectly, let's look at swagger .yaml that I used as input to generate the code:
And your visualization on Swagger Codegen
GET
POST
Everything seems correct, now let's see the result of the interface in spring-docs:
Swagger UI
GET
POST
To Reproduce
Download this project
demo.zip
Compile and run
Access http://localhost:8080/swagger-ui/index.html
As you can see, it appears that the Spring docs try to deduplicate items with the same names and this means that in the post where we should see
exampleTwo
we seeexampleOne
Extra information
The text was updated successfully, but these errors were encountered: