Skip to content

Commit

Permalink
update 422 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-andreadao committed Feb 7, 2024
1 parent 97492a7 commit f2f8571
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 80 deletions.
15 changes: 5 additions & 10 deletions reference/carts.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse_Batch'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -1033,7 +1033,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse_Batch'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -1064,7 +1064,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
schemas:
CartUpdateRequest:
Expand Down Expand Up @@ -3293,19 +3293,14 @@ components:
meta:
$ref: '#/components/schemas/WriteCollectionSuccessMeta'
x-internal: false
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down
15 changes: 5 additions & 10 deletions reference/catalog/brands_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -1693,7 +1693,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -1724,7 +1724,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
schemas:
brand_Full:
Expand Down Expand Up @@ -2118,19 +2118,14 @@ components:
meta:
$ref: '#/components/schemas/CollectionMeta'
x-internal: false
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down
15 changes: 5 additions & 10 deletions reference/catalog/categories_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -1888,7 +1888,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -1919,7 +1919,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
schemas:
category_Full:
Expand Down Expand Up @@ -2552,19 +2552,14 @@ components:
meta:
$ref: '#/components/schemas/CollectionMeta'
x-internal: false
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down
15 changes: 5 additions & 10 deletions reference/catalog/product-variants_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -1821,7 +1821,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -1852,7 +1852,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
schemas:
categoriesTree_Resp:
Expand Down Expand Up @@ -2603,19 +2603,14 @@ components:
meta:
$ref: '#/components/schemas/CollectionMeta'
x-internal: false
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down
15 changes: 5 additions & 10 deletions reference/catalog/products_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6349,7 +6349,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -6390,7 +6390,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -6421,7 +6421,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
schemas:
productModifier_Base:
Expand Down Expand Up @@ -8889,19 +8889,14 @@ components:
meta:
$ref: '#/components/schemas/CollectionMeta'
x-internal: false
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down
15 changes: 5 additions & 10 deletions reference/channels.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -843,7 +843,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -874,7 +874,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
parameters:
Accept:
Expand Down Expand Up @@ -2387,19 +2387,14 @@ components:
meta:
$ref: '#/components/schemas/CollectionMeta'
x-internal: false
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down
15 changes: 5 additions & 10 deletions reference/customers.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -1727,7 +1727,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -1758,7 +1758,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
parameters:
customerId:
Expand Down Expand Up @@ -4146,19 +4146,14 @@ components:
meta:
$ref: '#/components/schemas/CollectionMeta'
x-internal: false
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down
15 changes: 5 additions & 10 deletions reference/orders.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
put:
Expand Down Expand Up @@ -968,7 +968,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionResponse'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
'500':
description: Internal Server Error
delete:
Expand Down Expand Up @@ -999,7 +999,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/MetaFieldCollectionDeleteResponsePartialSuccess'
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess'
components:
schemas:
GetReturnsSettings:
Expand Down Expand Up @@ -3022,19 +3022,14 @@ components:
x-examples:
example-1:
$ref: '#/components/examples/EnableMultipleOrderNotifications/value'
MetaFieldCollectionDeleteResponsePartialSuccess:
MetaFieldCollectionResponsePartialSuccess:
type: object
description: |
Response payload for the BigCommerce API.
properties:
data:
type: array
items:
type: integer
description: |
The unique identifier for the metafield.
example:
- 123
example: []
errors:
type: array
items:
Expand Down

0 comments on commit f2f8571

Please sign in to comment.