chore(oas): [7/n] improve oas schemas (#9162)

This commit is contained in:
Shahed Nasser
2024-09-17 20:27:20 +03:00
committed by GitHub
parent 78eaed70e5
commit b5ffed6973
20 changed files with 128 additions and 190 deletions

View File

@@ -1,15 +1,15 @@
/**
* @schema AdminPostExchangesAddItemsReqSchema
* type: object
* description: SUMMARY
* description: The details of outbound items.
* x-schemaName: AdminPostExchangesAddItemsReqSchema
* properties:
* items:
* type: array
* description: The exchange's items.
* description: The details of outbound items.
* items:
* type: object
* description: The item's items.
* description: An item's details.
* required:
* - variant_id
* - quantity
@@ -17,7 +17,7 @@
* variant_id:
* type: string
* title: variant_id
* description: The item's variant id.
* description: The ID of the associated product variant.
* quantity:
* type: number
* title: quantity
@@ -29,14 +29,14 @@
* internal_note:
* type: string
* title: internal_note
* description: The item's internal note.
* description: A note viewed only by admin users.
* allow_backorder:
* type: boolean
* title: allow_backorder
* description: The item's allow backorder.
* description: Whether the item can be added even if it's not in stock.
* metadata:
* type: object
* description: The item's metadata.
* description: The item's metadata, can hold custom key-value pairs.
*
*/