-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs-util: fix issue with creating StoreProductType OAS schema (#11180)
- Loading branch information
1 parent
4ccb489
commit dd487f0
Showing
17 changed files
with
204 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
www/apps/api-reference/specs/admin/components/schemas/StoreProductType.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
type: object | ||
description: The product type's details. | ||
x-schemaName: StoreProductType | ||
required: | ||
- id | ||
- value | ||
- created_at | ||
- updated_at | ||
properties: | ||
id: | ||
type: string | ||
title: id | ||
description: The product type's ID. | ||
metadata: | ||
type: object | ||
description: The product type's metadata, can hold custom key-value pairs. | ||
created_at: | ||
type: string | ||
format: date-time | ||
title: created_at | ||
description: The date the product type was created. | ||
updated_at: | ||
type: string | ||
format: date-time | ||
title: updated_at | ||
description: The date the product type was updated. | ||
deleted_at: | ||
type: string | ||
format: date-time | ||
title: deleted_at | ||
description: The date the product type was deleted. | ||
value: | ||
type: string | ||
title: value | ||
description: The type's value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ required: | |
- product_type | ||
properties: | ||
product_type: | ||
$ref: ./StoreProduct.yaml | ||
$ref: ./StoreProductType.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
www/apps/api-reference/specs/store/components/schemas/StoreProductType.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
type: object | ||
description: The product type's details. | ||
x-schemaName: StoreProductType | ||
required: | ||
- id | ||
- value | ||
- created_at | ||
- updated_at | ||
properties: | ||
id: | ||
type: string | ||
title: id | ||
description: The product type's ID. | ||
metadata: | ||
type: object | ||
description: The product type's metadata, can hold custom key-value pairs. | ||
created_at: | ||
type: string | ||
format: date-time | ||
title: created_at | ||
description: The date the product type was created. | ||
updated_at: | ||
type: string | ||
format: date-time | ||
title: updated_at | ||
description: The date the product type was updated. | ||
deleted_at: | ||
type: string | ||
format: date-time | ||
title: deleted_at | ||
description: The date the product type was deleted. | ||
value: | ||
type: string | ||
title: value | ||
description: The type's value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ required: | |
- product_type | ||
properties: | ||
product_type: | ||
$ref: ./StoreProduct.yaml | ||
$ref: ./StoreProductType.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
www/utils/generated/oas-output/schemas/StoreProductType.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* @schema StoreProductType | ||
* type: object | ||
* description: The product type's details. | ||
* x-schemaName: StoreProductType | ||
* required: | ||
* - id | ||
* - value | ||
* - created_at | ||
* - updated_at | ||
* properties: | ||
* id: | ||
* type: string | ||
* title: id | ||
* description: The product type's ID. | ||
* metadata: | ||
* type: object | ||
* description: The product type's metadata, can hold custom key-value pairs. | ||
* created_at: | ||
* type: string | ||
* format: date-time | ||
* title: created_at | ||
* description: The date the product type was created. | ||
* updated_at: | ||
* type: string | ||
* format: date-time | ||
* title: updated_at | ||
* description: The date the product type was updated. | ||
* deleted_at: | ||
* type: string | ||
* format: date-time | ||
* title: deleted_at | ||
* description: The date the product type was deleted. | ||
* value: | ||
* type: string | ||
* title: value | ||
* description: The type's value. | ||
* | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters