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

Tsuyoshi Hoshinoa47db6239bf9
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index d8653157e3..339ad43389 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -3410,33 +3410,28 @@ components:
TaxonImage:
type: object
properties:
- data:
+ id:
+ type: string
+ example: '1'
+ type:
+ type: string
+ default: taxon_image
+ attributes:
type: object
- required:
- - id
- - type
- - attributes
properties:
- id:
- type: string
- example: '1'
- type:
- type: string
- default: taxon_image
- attributes:
- type: object
- properties:
- position:
- type: integer
- example: 0
- description: Sort order of images set in the Admin Panel
- styles:
- type: array
- description: An array of pre-scaled image styles
- items:
- $ref: '#/components/schemas/ImageStyle'
+ position:
+ type: integer
+ example: 0
+ description: Sort order of images set in the Admin Panel
+ styles:
+ type: array
+ description: An array of pre-scaled image styles
+ items:
+ $ref: '#/components/schemas/ImageStyle'
required:
- - data
+ - id
+ - type
+ - attributes
title: Taxon Image
x-internal: true
TaxonIncludes: