In my application.properties, I have overwritten the name of the Pageable parameters:
spring.data.web.pageable.page-parameter=offset
spring.data.web.pageable.size-parameter=limit
But when I go to the Swagger UI to check my Swagger documentation, the new name parameters are not used:
Here is the signature of my function:
@PageableAsQueryParam
@Operation(summary = "")
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "",
content = @Content(mediaType = "application/json", schema = @Schema(implementation = CustomPage.class))),
@ApiResponse(responseCode = "404", description = "", content = @Content)
})
@GetMapping(path = "/{version}/foo", produces = MediaType.APPLICATION_JSON_VALUE)
@Override
public ResponseEntity<CustomPage<ReducedAsset>> getAll(@ParameterObject Pageable pageable,
@Parameter(description = "Version from which to get the list")
@PathVariable String version)
How can I bind the new name to the documentation? And can I change the default description?
Thanks for your answer!

