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
Describe the bug
Declaring a Pageable parameter with @PageableDefaults will not change the reported default values for page, size, sort in the OpenAPI definition.
To Reproduce
Enable pageable support with springdoc-openapi-data-rest or Pageable replacement with SpringDocUtils.
Add a controller and a method with a pageable paramater like so:
Describe the bug
Declaring a Pageable parameter with
@PageableDefaults
will not change the reported default values forpage
,size
,sort
in the OpenAPI definition.To Reproduce
springdoc-openapi-data-rest
or Pageable replacement withSpringDocUtils
.Expected behavior
@PageableDefault
should be recognized to change the defaults for Pageable in the schema.Additional context
org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties.Pageable#defaultPageSize
.@PageableDefault
without parameters is enough to change the returned elements per page from 20 to 10 (but not in the schema).The text was updated successfully, but these errors were encountered: