From 7a2d272319943d6ca04f9aa117ac1fe96ee1d150 Mon Sep 17 00:00:00 2001 From: jkaliszuk Date: Tue, 21 Nov 2023 11:47:16 +0100 Subject: [PATCH] Fixed Products and ProductCollections schemas names (mostly `requestBody`) according to proper template. --- Changelog.md | 3 +-- reference/OpenAPI.json | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/Changelog.md b/Changelog.md index 477d9a6fe..c198156a4 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,8 +3,7 @@ ## 20231117 - Quality Fixes **Changed schemas** -- UpsertProductRequestBody to CreateProductRequestBody -- BulkUpsertProductRequestBody to BulkUpdateProductRequestBody +- Fixed Products and ProductCollections schemas names (mostly `requestBody`) according to proper template. - Fixed wrong required properties in Products and Discounts responses - Using type null instead of nullable flag diff --git a/reference/OpenAPI.json b/reference/OpenAPI.json index 75e2d399d..681b61724 100644 --- a/reference/OpenAPI.json +++ b/reference/OpenAPI.json @@ -27350,7 +27350,7 @@ } } }, - "CreateProductRequestBody": { + "ProductsCreateProductRequestBody": { "type": "object", "description": "Request schema for **POST** `/products`.", "title": "Create Product Request Body", @@ -27392,7 +27392,7 @@ } } }, - "UpdateProductRequestBody": { + "ProductsUpdateRequestBody": { "type": "object", "description": "Request schema for **PUT** `/products`.", "title": "Create Product Request Body", @@ -27424,7 +27424,7 @@ } } }, - "BulkUpsertProductsMetadataRequestBody": { + "ProductsBulkUpsertMetadataRequestBody": { "type": "object", "description": "Request schema for **POST** `/products/metadata/async`.", "title": "Update Products' Metadata in Bulk Request Body", @@ -27446,7 +27446,7 @@ "metadata" ] }, - "BulkUpdateProductRequestBody": { + "ProductsBulkUpdateRequestBody": { "type": "object", "description": "Request schema for **POST** `/products/bulk/async`.", "title": "Update Product Request Body", @@ -27834,7 +27834,7 @@ "object" ] }, - "UpsertSkuRequestBody": { + "SkusUpsertRequestBody": { "title": "SKU Object", "type": "object", "description": "Request body schema for **POST** `/products/{productId}/skus", @@ -27877,7 +27877,7 @@ } } }, - "UpdateSkuRequestBody": { + "SkusUpdateRequestBody": { "title": "Update SKU Request Body", "type": "object", "description": "Request body schema for **PUT** `/products/{productId}/skus/{skuId}`.", @@ -39425,7 +39425,7 @@ } } }, - "CreateProductCollectionsRequestBody": { + "ProductCollectionsCreateRequestBody": { "title": "Create Product Collections Request Body", "anyOf": [ { @@ -73772,7 +73772,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateProductRequestBody" + "$ref": "#/components/schemas/ProductsCreateProductRequestBody" }, "examples": { "Example": { @@ -73978,7 +73978,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateProductRequestBody" + "$ref": "#/components/schemas/ProductsUpdateRequestBody" }, "examples": { "Example": { @@ -74101,7 +74101,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/BulkUpdateProductRequestBody" + "$ref": "#/components/schemas/ProductsBulkUpdateRequestBody" } }, "examples": { @@ -74205,7 +74205,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BulkUpsertProductsMetadataRequestBody" + "$ref": "#/components/schemas/ProductsBulkUpsertMetadataRequestBody" }, "examples": { "Example": { @@ -74540,7 +74540,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpsertSkuRequestBody" + "$ref": "#/components/schemas/SkusUpsertRequestBody" }, "examples": { "Example": { @@ -74642,7 +74642,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateSkuRequestBody" + "$ref": "#/components/schemas/SkusUpdateRequestBody" }, "examples": { "Example": { @@ -75101,7 +75101,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateProductCollectionsRequestBody" + "$ref": "#/components/schemas/ProductCollectionsCreateRequestBody" } } }