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

Tsuyoshi Hoshinoc1541387ddc0
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index 1de09987bb..b4aaf27e19 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -2472,34 +2472,29 @@ components:
Image:
type: object
properties:
- data:
+ id:
+ type: string
+ example: '1'
+ type:
+ type: string
+ default: image
+ attributes:
type: object
- required:
- - id
- - type
- - attributes
properties:
- id:
- type: string
- example: '1'
- type:
- type: string
- default: image
- attributes:
- type: object
- properties:
- position:
- type: integer
- description: Sort order of images set in the Admin Panel
- example: 0
- minimum: 0
- styles:
- type: array
- description: An array of pre-scaled image styles
- items:
- $ref: '#/components/schemas/ImageStyle'
+ position:
+ type: integer
+ description: Sort order of images set in the Admin Panel
+ example: 0
+ minimum: 0
+ styles:
+ type: array
+ description: An array of pre-scaled image styles
+ items:
+ $ref: '#/components/schemas/ImageStyle'
required:
- - data
+ - id
+ - type
+ - attributes
title: Image
x-internal: true
ImageStyle: