Skip to content

Commit 5d54c2c

Browse files
committed
initial fix
1 parent d031025 commit 5d54c2c

5 files changed

Lines changed: 174 additions & 141 deletions

File tree

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
11
type: object
22
description: The paginated list of products.
33
x-schemaName: StoreProductListResponse
4-
required:
5-
- limit
6-
- offset
7-
- count
8-
- products
9-
properties:
10-
limit:
11-
type: number
12-
title: limit
13-
description: The maximum number of items returned.
14-
offset:
15-
type: number
16-
title: offset
17-
description: The number of items skipped before retrieving the returned items.
18-
count:
19-
type: number
20-
title: count
21-
description: The total count of items.
22-
products:
23-
type: array
4+
allOf:
5+
- type: object
6+
description: Pagination details
7+
required:
8+
- limit
9+
- offset
10+
- count
11+
properties:
12+
limit:
13+
type: number
14+
title: limit
15+
description: The maximum number of items returned.
16+
offset:
17+
type: number
18+
title: offset
19+
description: The number of items skipped before retrieving the returned items.
20+
count:
21+
type: number
22+
title: count
23+
description: The total count of items.
24+
estimate_count:
25+
type: number
26+
title: estimate_count
27+
description: >-
28+
The estimated count retrieved from the PostgreSQL query planner, which
29+
may be inaccurate.
30+
x-featureFlag: index_engine
31+
- type: object
2432
description: The list of products.
25-
items:
26-
$ref: ./StoreProduct.yaml
27-
estimate_count:
28-
type: number
29-
title: estimate_count
30-
description: >-
31-
The estimated count retrieved from the PostgreSQL query planner, which may
32-
be inaccurate.
33-
x-featureFlag: index_engine
33+
required:
34+
- products
35+
properties:
36+
products:
37+
type: array
38+
description: The list of products.
39+
items:
40+
$ref: ./StoreProduct.yaml

www/apps/api-reference/specs/admin/openapi.full.yaml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98754,34 +98754,41 @@ components:
9875498754
type: object
9875598755
description: The paginated list of products.
9875698756
x-schemaName: StoreProductListResponse
98757-
required:
98758-
- limit
98759-
- offset
98760-
- count
98761-
- products
98762-
properties:
98763-
limit:
98764-
type: number
98765-
title: limit
98766-
description: The maximum number of items returned.
98767-
offset:
98768-
type: number
98769-
title: offset
98770-
description: The number of items skipped before retrieving the returned items.
98771-
count:
98772-
type: number
98773-
title: count
98774-
description: The total count of items.
98775-
products:
98776-
type: array
98757+
allOf:
98758+
- type: object
98759+
description: Pagination details
98760+
required:
98761+
- limit
98762+
- offset
98763+
- count
98764+
properties:
98765+
limit:
98766+
type: number
98767+
title: limit
98768+
description: The maximum number of items returned.
98769+
offset:
98770+
type: number
98771+
title: offset
98772+
description: The number of items skipped before retrieving the returned items.
98773+
count:
98774+
type: number
98775+
title: count
98776+
description: The total count of items.
98777+
estimate_count:
98778+
type: number
98779+
title: estimate_count
98780+
description: The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.
98781+
x-featureFlag: index_engine
98782+
- type: object
9877798783
description: The list of products.
98778-
items:
98779-
$ref: '#/components/schemas/StoreProduct'
98780-
estimate_count:
98781-
type: number
98782-
title: estimate_count
98783-
description: The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.
98784-
x-featureFlag: index_engine
98784+
required:
98785+
- products
98786+
properties:
98787+
products:
98788+
type: array
98789+
description: The list of products.
98790+
items:
98791+
$ref: '#/components/schemas/StoreProduct'
9878598792
StoreProductOption:
9878698793
type: object
9878798794
description: The product option's details.
Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
11
type: object
22
description: The paginated list of products.
33
x-schemaName: StoreProductListResponse
4-
required:
5-
- limit
6-
- offset
7-
- count
8-
- products
9-
properties:
10-
limit:
11-
type: number
12-
title: limit
13-
description: The maximum number of items returned.
14-
offset:
15-
type: number
16-
title: offset
17-
description: The number of items skipped before retrieving the returned items.
18-
count:
19-
type: number
20-
title: count
21-
description: The total count of items.
22-
products:
23-
type: array
4+
allOf:
5+
- type: object
6+
description: Pagination details
7+
required:
8+
- limit
9+
- offset
10+
- count
11+
properties:
12+
limit:
13+
type: number
14+
title: limit
15+
description: The maximum number of items returned.
16+
offset:
17+
type: number
18+
title: offset
19+
description: The number of items skipped before retrieving the returned items.
20+
count:
21+
type: number
22+
title: count
23+
description: The total count of items.
24+
estimate_count:
25+
type: number
26+
title: estimate_count
27+
description: >-
28+
The estimated count retrieved from the PostgreSQL query planner, which
29+
may be inaccurate.
30+
x-featureFlag: index_engine
31+
- type: object
2432
description: The list of products.
25-
items:
26-
$ref: ./StoreProduct.yaml
27-
estimate_count:
28-
type: number
29-
title: estimate_count
30-
description: >-
31-
The estimated count retrieved from the PostgreSQL query planner, which may
32-
be inaccurate.
33-
x-featureFlag: index_engine
33+
required:
34+
- products
35+
properties:
36+
products:
37+
type: array
38+
description: The list of products.
39+
items:
40+
$ref: ./StoreProduct.yaml

www/apps/api-reference/specs/store/openapi.full.yaml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -41440,34 +41440,41 @@ components:
4144041440
type: object
4144141441
description: The paginated list of products.
4144241442
x-schemaName: StoreProductListResponse
41443-
required:
41444-
- limit
41445-
- offset
41446-
- count
41447-
- products
41448-
properties:
41449-
limit:
41450-
type: number
41451-
title: limit
41452-
description: The maximum number of items returned.
41453-
offset:
41454-
type: number
41455-
title: offset
41456-
description: The number of items skipped before retrieving the returned items.
41457-
count:
41458-
type: number
41459-
title: count
41460-
description: The total count of items.
41461-
products:
41462-
type: array
41443+
allOf:
41444+
- type: object
41445+
description: Pagination details
41446+
required:
41447+
- limit
41448+
- offset
41449+
- count
41450+
properties:
41451+
limit:
41452+
type: number
41453+
title: limit
41454+
description: The maximum number of items returned.
41455+
offset:
41456+
type: number
41457+
title: offset
41458+
description: The number of items skipped before retrieving the returned items.
41459+
count:
41460+
type: number
41461+
title: count
41462+
description: The total count of items.
41463+
estimate_count:
41464+
type: number
41465+
title: estimate_count
41466+
description: The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.
41467+
x-featureFlag: index_engine
41468+
- type: object
4146341469
description: The list of products.
41464-
items:
41465-
$ref: '#/components/schemas/StoreProduct'
41466-
estimate_count:
41467-
type: number
41468-
title: estimate_count
41469-
description: The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.
41470-
x-featureFlag: index_engine
41470+
required:
41471+
- products
41472+
properties:
41473+
products:
41474+
type: array
41475+
description: The list of products.
41476+
items:
41477+
$ref: '#/components/schemas/StoreProduct'
4147141478
StoreProductOption:
4147241479
type: object
4147341480
description: The product option's details.

www/utils/generated/oas-output/schemas/StoreProductListResponse.ts

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,39 @@
33
* type: object
44
* description: The paginated list of products.
55
* x-schemaName: StoreProductListResponse
6-
* required:
7-
* - limit
8-
* - offset
9-
* - count
10-
* - products
11-
* properties:
12-
* limit:
13-
* type: number
14-
* title: limit
15-
* description: The maximum number of items returned.
16-
* offset:
17-
* type: number
18-
* title: offset
19-
* description: The number of items skipped before retrieving the returned items.
20-
* count:
21-
* type: number
22-
* title: count
23-
* description: The total count of items.
24-
* products:
25-
* type: array
6+
* allOf:
7+
* - type: object
8+
* description: Pagination details
9+
* required:
10+
* - limit
11+
* - offset
12+
* - count
13+
* properties:
14+
* limit:
15+
* type: number
16+
* title: limit
17+
* description: The maximum number of items returned.
18+
* offset:
19+
* type: number
20+
* title: offset
21+
* description: The number of items skipped before retrieving the returned items.
22+
* count:
23+
* type: number
24+
* title: count
25+
* description: The total count of items.
26+
* estimate_count:
27+
* type: number
28+
* title: estimate_count
29+
* description: The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.
30+
* x-featureFlag: index_engine
31+
* - type: object
2632
* description: The list of products.
27-
* items:
28-
* $ref: "#/components/schemas/StoreProduct"
29-
* estimate_count:
30-
* type: number
31-
* title: estimate_count
32-
* description: The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.
33-
* x-featureFlag: index_engine
34-
*
33+
* required:
34+
* - products
35+
* properties:
36+
* products:
37+
* type: array
38+
* description: The list of products.
39+
* items:
40+
* $ref: "#/components/schemas/StoreProduct"
3541
*/
36-

0 commit comments

Comments
 (0)