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
By default ModelAndView is ignored in springdoc-openapi.
With the next release: v1.2.31, you will be able to display RestControllers that use ModelAndView as well.
For that, you will need to define the following property:
springdoc.model-and-view-allowed=true
If you need to map ModelAndView to a another more convinient type (for example Object), you can just add the following declaration, in any static block:
Is your feature request related to a problem? Please describe.
org.springframework.web.servlet.ModelAndView
(see example at the end)Describe the solution you'd like
ModelAndView
"type": "string"
):Describe alternatives you've considered
Workaround return Object. But this will not produce a correct return type.
OpenApi Response should be
"type": "string"
Additional context
Example:
The text was updated successfully, but these errors were encountered: