Open Bloodlex opened 4 years ago
It would be nice to have a generified Page response automaticaly generated from spec. something like:
ResponseEntity<Page<User>>
instead of ResponseEntity<Page>
@Bloodlex does this work for you https://github.com/OpenAPITools/openapi-generator/pull/5022 ?
It would be nice to have a generified Page response automaticaly generated from spec. something like:
ResponseEntity<Page<User>>
instead ofResponseEntity<Page>
I have same problem. Page<User>
in api-docs will produce schema name like Page« User»
, and this will cause an error
-attribute components.schemas.Schema name Page«User» doesn't adhere to regular expression ^[a-zA-Z0-9\.\-_]+$
Description
I would like the OpenAPI Generator to be able to generate Pageable parameter in API according to the implementation in Spring Boot Data. I've been trying to find a suitable, out of the box solution, but couldn't find one.
Ideally, this Pageable parameter should be added only to GET methods in a following manner:
default ResponseEntity<User> getUser(@ApiParam(value = "value",required=true) @PathVariable("id") Long id, Pageable pageable)
So after implementing this interface in my Controller I would need to override it and having this aforementioned Pageable parameter. I don't want to have separate parameters for size, page or sort, only this Pageable here.
Thanks for any tips and help!
openapi-generator version
4.3.0