docs-util: fix issue with creating StoreProductType OAS schema (#11180)

This commit is contained in:
Shahed Nasser
2025-01-27 17:33:46 +02:00
committed by GitHub
parent 4ccb489dbe
commit dd487f02e1
17 changed files with 204 additions and 16 deletions

View File

@@ -35,7 +35,7 @@ properties:
items:
type: object
type:
type: object
$ref: ./StoreProductType.yaml
length:
type: number
title: length

View File

@@ -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.

View File

@@ -23,4 +23,4 @@ properties:
type: array
description: The list of product types.
items:
$ref: ./StoreProduct.yaml
$ref: ./StoreProductType.yaml

View File

@@ -5,4 +5,4 @@ required:
- product_type
properties:
product_type:
$ref: ./StoreProduct.yaml
$ref: ./StoreProductType.yaml