Skip to content

Commit a7bf9c5

Browse files
committed
fix: correct class naming on generation following pagination
Signed-off-by: Pavel Shukhman <pavel@reliza.io>
1 parent 4a34e6f commit a7bf9c5

1 file changed

Lines changed: 65 additions & 52 deletions

File tree

spec/openapi.yaml

Lines changed: 65 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,66 @@ components:
14971497
required:
14981498
- hasNext
14991499
- nextPageToken
1500+
paginated-product-response:
1501+
description: A paginated response containing TEA Products
1502+
allOf:
1503+
- $ref: "#/components/schemas/pagination-details"
1504+
- type: object
1505+
properties:
1506+
results:
1507+
type: array
1508+
items:
1509+
$ref: "#/components/schemas/product"
1510+
required:
1511+
- results
1512+
paginated-product-release-response:
1513+
description: A paginated response containing TEA Product Releases
1514+
allOf:
1515+
- $ref: "#/components/schemas/pagination-details"
1516+
- type: object
1517+
properties:
1518+
results:
1519+
type: array
1520+
items:
1521+
$ref: "#/components/schemas/productRelease"
1522+
required:
1523+
- results
1524+
paginated-component-response:
1525+
description: A paginated response containing TEA Components
1526+
allOf:
1527+
- $ref: "#/components/schemas/pagination-details"
1528+
- type: object
1529+
properties:
1530+
results:
1531+
type: array
1532+
items:
1533+
$ref: "#/components/schemas/component"
1534+
required:
1535+
- results
1536+
paginated-component-release-response:
1537+
description: A paginated response containing TEA Component Releases
1538+
allOf:
1539+
- $ref: "#/components/schemas/pagination-details"
1540+
- type: object
1541+
properties:
1542+
results:
1543+
type: array
1544+
items:
1545+
$ref: "#/components/schemas/release"
1546+
required:
1547+
- results
1548+
paginated-collection-response:
1549+
description: A paginated response containing TEA Collections
1550+
allOf:
1551+
- $ref: "#/components/schemas/pagination-details"
1552+
- type: object
1553+
properties:
1554+
results:
1555+
type: array
1556+
items:
1557+
$ref: "#/components/schemas/collection"
1558+
required:
1559+
- results
15001560

15011561
responses:
15021562
204-common-delete:
@@ -1530,78 +1590,31 @@ components:
15301590
content:
15311591
application/json:
15321592
schema:
1533-
type: object
1534-
description: A paginated response containing TEA Products
1535-
allOf:
1536-
- $ref: "#/components/schemas/pagination-details"
1537-
- type: object
1538-
properties:
1539-
results:
1540-
type: array
1541-
items:
1542-
$ref: "#/components/schemas/product"
1543-
required:
1544-
- results
1593+
$ref: "#/components/schemas/paginated-product-response"
15451594
paginated-product-release:
15461595
description: A paginated response containing TEA Product Releases
15471596
content:
15481597
application/json:
15491598
schema:
1550-
allOf:
1551-
- $ref: "#/components/schemas/pagination-details"
1552-
- type: object
1553-
properties:
1554-
results:
1555-
type: array
1556-
items:
1557-
$ref: "#/components/schemas/productRelease"
1558-
required:
1559-
- results
1599+
$ref: "#/components/schemas/paginated-product-release-response"
15601600
paginated-component:
15611601
description: A paginated response containing TEA Components
15621602
content:
15631603
application/json:
15641604
schema:
1565-
allOf:
1566-
- $ref: "#/components/schemas/pagination-details"
1567-
- type: object
1568-
properties:
1569-
results:
1570-
type: array
1571-
items:
1572-
$ref: "#/components/schemas/component"
1573-
required:
1574-
- results
1605+
$ref: "#/components/schemas/paginated-component-response"
15751606
paginated-component-release:
15761607
description: A paginated response containing TEA Component Releases
15771608
content:
15781609
application/json:
15791610
schema:
1580-
allOf:
1581-
- $ref: "#/components/schemas/pagination-details"
1582-
- type: object
1583-
properties:
1584-
results:
1585-
type: array
1586-
items:
1587-
$ref: "#/components/schemas/release"
1588-
required:
1589-
- results
1611+
$ref: "#/components/schemas/paginated-component-release-response"
15901612
paginated-collection:
15911613
description: A paginated response containing TEA Collections
15921614
content:
15931615
application/json:
15941616
schema:
1595-
allOf:
1596-
- $ref: "#/components/schemas/pagination-details"
1597-
- type: object
1598-
properties:
1599-
results:
1600-
type: array
1601-
items:
1602-
$ref: "#/components/schemas/collection"
1603-
required:
1604-
- results
1617+
$ref: "#/components/schemas/paginated-collection-response"
16051618

16061619
parameters:
16071620
# Pagination

0 commit comments

Comments
 (0)