@rapharacing/schemas
Version:
OpenAPI to JSON Schema to be used with middy for CC response validation
32 lines • 1.1 kB
JSON
{
"type": "object",
"properties": {
"currentPage": {
"type": "integer",
"format": "int32",
"description": "The current page number. The first page is number zero (0), the second page is number one (1), and so on"
},
"pageSize": {
"type": "integer",
"format": "int32",
"description": "The number of results per page. A page may have less results if there are less than a full page of results, only on the last page in the results"
},
"sort": {
"type": "string",
"description": "The selected sort code"
},
"totalPages": {
"type": "integer",
"format": "int32",
"description": "The total number of pages. This is the number of pages, each of pageSize, required to display the totalResults."
},
"totalResults": {
"type": "integer",
"format": "int64",
"description": "The total number of matched results across all pages"
}
},
"title": "deprecatedPagination",
"description": "Representation of a search results pagination",
"$schema": "http://json-schema.org/schema#"
}