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 `OptionType` data structure

Tsuyoshi Hoshino49b836a346e6
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index b4aaf27e19..08cc7e0ac9 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -2806,33 +2806,28 @@ components:
type: object
x-internal: true
properties:
- data:
+ id:
+ type: string
+ example: '1'
+ type:
+ type: string
+ default: option_type
+ attributes:
type: object
- required:
- - id
- - type
- - attributes
properties:
- id:
+ name:
type: string
- example: '1'
- type:
+ example: color
+ presentation:
type: string
- default: option_type
- attributes:
- type: object
- properties:
- name:
- type: string
- example: color
- presentation:
- type: string
- example: Color
- position:
- type: integer
- example: 1
+ example: Color
+ position:
+ type: integer
+ example: 1
required:
- - data
+ - id
+ - type
+ - attributes
Payment:
title: Payment
type: object