I'm returning a Page<SomeObject>
In my method endpoints. In my OpenAPI UI, how can I generate a description of the fields that come from org.springframework.data.domain.Page
type.
Normally what I do is go to the Object that I want to document and annotate its fields with @Schema(description = "some description")
. But I don't have access to the Page
class. How can I document its fields?
I'm probably missing something simple here, but any help would be appreciated.
PS: I am using OpenAPI v3 and springdoc