chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema (#4780)

* chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema

* ran build
This commit is contained in:
Shahed Nasser
2023-08-16 16:42:34 +03:00
committed by GitHub
parent 9cc0bc6c9d
commit 320fab8aed
2 changed files with 10 additions and 1 deletions

View File

@@ -4,6 +4,10 @@
import { SetRelation, Merge } from "../core/ModelUtils"
export interface AdminPostInventoryItemsReq {
/**
* The ID of the variant to create the inventory item for.
*/
variant_id: string
/**
* The unique SKU of the associated Product Variant.
*/

View File

@@ -15,7 +15,7 @@ import { validator } from "../../../../utils/validator"
* @oas [post] /admin/inventory-items
* operationId: "PostInventoryItems"
* summary: "Create an Inventory Item"
* description: "Create an Inventory Item."
* description: "Create an Inventory Item for a product variant."
* x-authenticated: true
* parameters:
* - (query) expand {string} Comma-separated relations that should be expanded in the returned inventory item.
@@ -130,7 +130,12 @@ export default async (req, res) => {
/**
* @schema AdminPostInventoryItemsReq
* type: object
* required:
* - variant_id
* properties:
* variant_id:
* description: The ID of the variant to create the inventory item for.
* type: string
* sku:
* description: The unique SKU of the associated Product Variant.
* type: string