Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix `ProductProperty` data structure

Tsuyoshi Hoshinof41dc392a1a9
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index 08cc7e0ac9..d8653157e3 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -3059,36 +3059,31 @@ components:
title: Product Property
type: object
properties:
- data:
+ id:
+ type: string
+ example: '1'
+ type:
+ type: string
+ default: product_property
+ attributes:
type: object
- required:
- - id
- - type
- - attributes
properties:
- id:
+ value:
type: string
- example: '1'
- type:
+ example: Wilson
+ filter_param:
type: string
- default: product_property
- attributes:
- type: object
- properties:
- value:
- type: string
- example: Wilson
- filter_param:
- type: string
- example: wilson
- name:
- type: string
- example: manufacturer
- description:
- type: string
- example: Manufacturer
+ example: wilson
+ name:
+ type: string
+ example: manufacturer
+ description:
+ type: string
+ example: Manufacturer
required:
- - data
+ - id
+ - type
+ - attributes
x-internal: true
Promotion:
type: object