From c610d98fbdfacc70fc6c8927f9b71db4a7e76978 Mon Sep 17 00:00:00 2001 From: Hunter Leachman Date: Mon, 5 Feb 2024 13:08:54 -0600 Subject: [PATCH] PSE-909: [update] Mult-Status schema for product-variants --- .../catalog/product-variants_catalog.v3.yml | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/reference/catalog/product-variants_catalog.v3.yml b/reference/catalog/product-variants_catalog.v3.yml index fa421e754..7af56d9a6 100644 --- a/reference/catalog/product-variants_catalog.v3.yml +++ b/reference/catalog/product-variants_catalog.v3.yml @@ -338,14 +338,7 @@ paths: content: application/json: schema: - type: object - properties: - data: - $ref: '#/components/schemas/productVariant_Full' - errors: - $ref: '#/components/schemas/errorMultiStatus' - meta: - $ref: '#/components/schemas/metaCollection_Full' + $ref: '#/components/schemas/MultiStatus' '404': description: | The resource was not found. @@ -521,14 +514,7 @@ paths: content: application/json: schema: - type: object - properties: - data: - $ref: '#/components/schemas/productVariant_Full' - errors: - $ref: '#/components/schemas/errorMultiStatus' - meta: - $ref: '#/components/schemas/metaCollection_Full' + $ref: '#/components/schemas/MultiStatus' '404': description: | The resource was not found. @@ -2214,6 +2200,15 @@ components: $ref: '#/components/schemas/pagination_Full' description: 'Data about the response, including pagination and collection totals.' x-internal: false + MultiStatus: + type: object + properties: + data: + $ref: '#/components/schemas/productVariant_Full' + errors: + $ref: '#/components/schemas/errorMultiStatus' + meta: + $ref: '#/components/schemas/metaCollection_Full' pagination_Full: title: pagination_Full type: object