Skip to content

Commit 09e6299

Browse files
committed
Added hasNext into pagination-details schema
`reuslts` is now required in Products Response Signed-off-by: Paul Horton <phorton@sonatype.com>
1 parent dffef69 commit 09e6299

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

spec/openapi.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,27 +1468,24 @@ components:
14681468
pagination-details:
14691469
type: object
14701470
properties:
1471+
hasNext:
1472+
type: boolean
1473+
description: |
1474+
A flag (to aid clients) to know whether there is a next page of results to fetch.
1475+
1476+
`nextPageToken` will always be supplied, hence this hint is included to aid clients.
1477+
default: false
14711478
nextPageToken:
14721479
type: string
1473-
nullable: true
1480+
nullable: false
14741481
description: |
1475-
A token to retrieve the next page. If this field is omitted or empty,
1476-
there are no more pages to retrieve.
1482+
A token that can be used in a following request to retrieve the next page or results.
1483+
1484+
It must always be supplied in responses.
14771485
required:
1486+
- hasNext
14781487
- nextPageToken
14791488

1480-
paginated-product-response:
1481-
type: object
1482-
description: A paginated response containing TEA Products
1483-
allOf:
1484-
- $ref: "#/components/schemas/pagination-details"
1485-
- type: object
1486-
properties:
1487-
results:
1488-
type: array
1489-
items:
1490-
$ref: "#/components/schemas/product"
1491-
14921489
paginated-product-release-response:
14931490
type: object
14941491
description: A paginated response containing TEA Product Releases
@@ -1566,6 +1563,8 @@ components:
15661563
type: array
15671564
items:
15681565
$ref: "#/components/schemas/product"
1566+
required:
1567+
- results
15691568
paginated-product-release:
15701569
description: A paginated response containing TEA Product Releases
15711570
content:

0 commit comments

Comments
 (0)