From c615f4014cb434e5798b9585d921c05bae1ee02b Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 4 Sep 2024 21:34:17 +0300 Subject: [PATCH] chore: fix oas errors (#8982) Fix indentation and missing values in OAS resulting in an error when generating the specs in the API reference --- ...cts_[id]_variants_inventory-items_batch.ts | 2 +- .../operations/admin/post_admin_promotions.ts | 52 +++++++++---------- .../admin/post_admin_shipping-options_[id].ts | 1 - 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/www/utils/generated/oas-output/operations/admin/post_admin_products_[id]_variants_inventory-items_batch.ts b/www/utils/generated/oas-output/operations/admin/post_admin_products_[id]_variants_inventory-items_batch.ts index 234c58c6f9..00c0bb24bd 100644 --- a/www/utils/generated/oas-output/operations/admin/post_admin_products_[id]_variants_inventory-items_batch.ts +++ b/www/utils/generated/oas-output/operations/admin/post_admin_products_[id]_variants_inventory-items_batch.ts @@ -25,7 +25,7 @@ * properties: * create: * type: array - * description: + * description: The The associations to create between product variants and inventory items. * items: * type: object * description: The associations to create between a product variant and an inventory item. diff --git a/www/utils/generated/oas-output/operations/admin/post_admin_promotions.ts b/www/utils/generated/oas-output/operations/admin/post_admin_promotions.ts index ffe6f8a844..529b12b113 100644 --- a/www/utils/generated/oas-output/operations/admin/post_admin_promotions.ts +++ b/www/utils/generated/oas-output/operations/admin/post_admin_promotions.ts @@ -225,15 +225,15 @@ * oneOf: * - type: string * title: values - * description: The attribute's value. - * example: prod_123 - * - type: array - * description: The allowed attribute values. - * items: - * type: string - * title: values - * description: An attribute value. - * example: prod_123 + * description: The attribute's value. + * example: prod_123 + * - type: array + * description: The allowed attribute values. + * items: + * type: string + * title: values + * description: An attribute value. + * example: prod_123 * buy_rules: * type: array * description: The application method's buy rules. @@ -270,15 +270,15 @@ * oneOf: * - type: string * title: values - * description: The attribute's value. - * example: prod_123 - * - type: array - * description: The allowed attribute values. - * items: - * type: string - * title: values - * description: An attribute value. - * example: prod_123 + * description: The attribute's value. + * example: prod_123 + * - type: array + * description: The allowed attribute values. + * items: + * type: string + * title: values + * description: An attribute value. + * example: prod_123 * apply_to_quantity: * type: number * title: apply_to_quantity @@ -324,14 +324,14 @@ * - type: string * title: values * description: The attribute's value. - * example: prod_123 - * - type: array - * description: The allowed attribute values. - * items: - * type: string - * title: values - * description: An attribute value. - * example: prod_123 + * example: prod_123 + * - type: array + * description: The allowed attribute values. + * items: + * type: string + * title: values + * description: An attribute value. + * example: prod_123 * - type: object * description: The promotion's details. * properties: diff --git a/www/utils/generated/oas-output/operations/admin/post_admin_shipping-options_[id].ts b/www/utils/generated/oas-output/operations/admin/post_admin_shipping-options_[id].ts index eb4b64a6b3..43b33247e9 100644 --- a/www/utils/generated/oas-output/operations/admin/post_admin_shipping-options_[id].ts +++ b/www/utils/generated/oas-output/operations/admin/post_admin_shipping-options_[id].ts @@ -213,7 +213,6 @@ * attribute: * type: string * title: attribute - * description: The rule's attribute. * description: The name of a property or table that the rule applies to. * example: customer_group * value: