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
Spring Web MVC supports objects of custom classes to be used as query params. The framework maps fields of such object to appropriate query params. springdoc-openapi handles this case correctly. However, if controller's argument of custom class is annotated with @Validated, springdoc-openapi generates the description of this parameter like a part of a request body instead of treating it as query params.
Describe the bug
Spring Web MVC supports objects of custom classes to be used as query params. The framework maps fields of such object to appropriate query params.
springdoc-openapi
handles this case correctly. However, if controller's argument of custom class is annotated with@Validated
,springdoc-openapi
generates the description of this parameter like a part of a request body instead of treating it as query params.To Reproduce
Steps to reproduce the behavior:
Spring Boot 3.1.3
org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0
Expected behavior

Expected the same output like the library generates in case if there is no
@Validated
annotation onPageParams
method argument.Actual behavior

The text was updated successfully, but these errors were encountered: