Skip to content

Commit

Permalink
Fixed Products and ProductCollections schemas names (mostly `requestB…
Browse files Browse the repository at this point in the history
…ody`) according to proper template.
  • Loading branch information
jkaliszuk committed Nov 21, 2023
1 parent 53e1b6f commit 7a2d272
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
3 changes: 1 addition & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
28 changes: 14 additions & 14 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -27350,7 +27350,7 @@
}
}
},
"CreateProductRequestBody": {
"ProductsCreateProductRequestBody": {
"type": "object",
"description": "Request schema for **POST** `/products`.",
"title": "Create Product Request Body",
Expand Down Expand Up @@ -27392,7 +27392,7 @@
}
}
},
"UpdateProductRequestBody": {
"ProductsUpdateRequestBody": {
"type": "object",
"description": "Request schema for **PUT** `/products`.",
"title": "Create Product Request Body",
Expand Down Expand Up @@ -27424,7 +27424,7 @@
}
}
},
"BulkUpsertProductsMetadataRequestBody": {
"ProductsBulkUpsertMetadataRequestBody": {
"type": "object",
"description": "Request schema for **POST** `/products/metadata/async`.",
"title": "Update Products' Metadata in Bulk Request Body",
Expand All @@ -27446,7 +27446,7 @@
"metadata"
]
},
"BulkUpdateProductRequestBody": {
"ProductsBulkUpdateRequestBody": {
"type": "object",
"description": "Request schema for **POST** `/products/bulk/async`.",
"title": "Update Product Request Body",
Expand Down Expand Up @@ -27834,7 +27834,7 @@
"object"
]
},
"UpsertSkuRequestBody": {
"SkusUpsertRequestBody": {
"title": "SKU Object",
"type": "object",
"description": "Request body schema for **POST** `/products/{productId}/skus",
Expand Down Expand Up @@ -27877,7 +27877,7 @@
}
}
},
"UpdateSkuRequestBody": {
"SkusUpdateRequestBody": {
"title": "Update SKU Request Body",
"type": "object",
"description": "Request body schema for **PUT** `/products/{productId}/skus/{skuId}`.",
Expand Down Expand Up @@ -39425,7 +39425,7 @@
}
}
},
"CreateProductCollectionsRequestBody": {
"ProductCollectionsCreateRequestBody": {
"title": "Create Product Collections Request Body",
"anyOf": [
{
Expand Down Expand Up @@ -73772,7 +73772,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateProductRequestBody"
"$ref": "#/components/schemas/ProductsCreateProductRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -73978,7 +73978,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateProductRequestBody"
"$ref": "#/components/schemas/ProductsUpdateRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -74101,7 +74101,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BulkUpdateProductRequestBody"
"$ref": "#/components/schemas/ProductsBulkUpdateRequestBody"
}
},
"examples": {
Expand Down Expand Up @@ -74205,7 +74205,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BulkUpsertProductsMetadataRequestBody"
"$ref": "#/components/schemas/ProductsBulkUpsertMetadataRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -74540,7 +74540,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpsertSkuRequestBody"
"$ref": "#/components/schemas/SkusUpsertRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -74642,7 +74642,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSkuRequestBody"
"$ref": "#/components/schemas/SkusUpdateRequestBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -75101,7 +75101,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateProductCollectionsRequestBody"
"$ref": "#/components/schemas/ProductCollectionsCreateRequestBody"
}
}
}
Expand Down

0 comments on commit 7a2d272

Please sign in to comment.