Skip to content
Advertisement

Tag: springdoc-openapi-ui

How can have springdoc-openapi use the @JsonValue enum format without changing toString?

I have a Spring Boot application using springdoc-openapi to generate Swagger API documentation for my controllers. One of the enums used in the JSON request/response has a different JSON representation than its value/toString(). This is achieved using the Jackson @JsonValue annotation: However, the generated Swagger API docs use the enum value (specifically, the value of toString()) rather than the JSON

Swagger OpenAPI 3.0 – Springdoc – GroupedOpenApi not working in Spring MVC

My Application is Sping MVC not boot. I’m using springdoc-openapi-ui 1.4.4 also, I added the following imports to one of my @configuration class; and implement the beans as below But when I try http://localhost:8080/MyApp/v3/api-docs/user gives me 404. but I get all the APIs listed in http://localhost:8080/MyApp/v3/api-docs Also it comes in http://www.onlykalu.com:81/MyApp/swagger-ui/index.html?configUrl=/MyApp/v3/api-docs/swagger-config also without definition drop down. if I add to

Advertisement