From ad53aa0350e94403e563f64bbdbd9d37392a695e Mon Sep 17 00:00:00 2001 From: Traci Porter Date: Thu, 12 Dec 2024 11:25:16 -0600 Subject: [PATCH 1/3] DEVDOCS-5908 --- .../catalog/product-modifiers_catalog.v3.yml | 62 +++++++++---------- 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/reference/catalog/product-modifiers_catalog.v3.yml b/reference/catalog/product-modifiers_catalog.v3.yml index a091f41d1..0d10f9a39 100644 --- a/reference/catalog/product-modifiers_catalog.v3.yml +++ b/reference/catalog/product-modifiers_catalog.v3.yml @@ -1828,41 +1828,37 @@ components: config: $ref: '#/components/schemas/config_Full' option_values: - allOf: - - type: array - items: + type: object + properties: + id: + type: integer + description: | + The unique numeric ID of the value; increments sequentially. + is_default: + type: boolean + description: | + The flag for preselecting a value as the default on the storefront. This field is not supported for swatch options/modifiers. + example: false + adjusters: type: object properties: - id: - type: integer - description: | - The unique numeric ID of the value; increments sequentially. - is_default: - type: boolean - description: | - The flag for preselecting a value as the default on the storefront. This field is not supported for swatch options/modifiers. - example: false - adjusters: - type: object - properties: - price: - type: object - properties: - adjuster: - type: string - description: | - The type of adjuster for either the price or the weight of the variant, when the modifier value is selected on the storefront. - enum: - - relative - - percentage - x-nullable: true - adjuster_value: - type: number - description: | - The numeric amount by which the adjuster will change either the price or the weight of the variant, when the modifier value is selected on the storefront. - example: 5 - description: Adjuster for Complex Rules. - description: 'Part of Modifier Value Response ' + price: + type: object + properties: + adjuster: + type: string + description: | + The type of adjuster for either the price or the weight of the variant, when the modifier value is selected on the storefront. + enum: + - relative + - percentage + x-nullable: true + adjuster_value: + type: number + description: | + The numeric amount by which the adjuster will change either the price or the weight of the variant, when the modifier value is selected on the storefront. + example: 5 + description: Adjuster for Complex Rules. display_name: type: string description: The name of the option shown on the storefront. From d918d954dd3e5852f2926d8c971f0e89d375133e Mon Sep 17 00:00:00 2001 From: Traci Porter Date: Thu, 12 Dec 2024 11:43:38 -0600 Subject: [PATCH 2/3] Update product-modifiers_catalog.v3.yml -fix error --- .../catalog/product-modifiers_catalog.v3.yml | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/reference/catalog/product-modifiers_catalog.v3.yml b/reference/catalog/product-modifiers_catalog.v3.yml index 0d10f9a39..7cdfc6ad4 100644 --- a/reference/catalog/product-modifiers_catalog.v3.yml +++ b/reference/catalog/product-modifiers_catalog.v3.yml @@ -159,29 +159,29 @@ paths: sort_order: 0 value_data: {} adjusters: - price: - adjuster: relative - adjuster_value: 5 - weight: - adjuster: relative - adjuster_value: 5 - purchasing_disabled: - status: true - message: string + price: + adjuster: relative + adjuster_value: 5 + weight: + adjuster: relative + adjuster_value: 5 + purchasing_disabled: + status: true + message: string - is_default: false label: '+10' sort_order: 0 value_data: {} adjusters: - price: - adjuster: relative - adjuster_value: 10 - weight: - adjuster: relative - adjuster_value: 10 - purchasing_disabled: - status: true - message: string + price: + adjuster: relative + adjuster_value: 10 + weight: + adjuster: relative + adjuster_value: 10 + purchasing_disabled: + status: true + message: string display_name: Donation responses: '200': From d91ad531495804377ee7607a6ecf3a2bd0576bfa Mon Sep 17 00:00:00 2001 From: Traci Porter Date: Thu, 12 Dec 2024 12:46:15 -0600 Subject: [PATCH 3/3] fix error --- reference/catalog/product-modifiers_catalog.v3.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reference/catalog/product-modifiers_catalog.v3.yml b/reference/catalog/product-modifiers_catalog.v3.yml index 7cdfc6ad4..82f87d226 100644 --- a/reference/catalog/product-modifiers_catalog.v3.yml +++ b/reference/catalog/product-modifiers_catalog.v3.yml @@ -1828,8 +1828,10 @@ components: config: $ref: '#/components/schemas/config_Full' option_values: - type: object - properties: + type: array + items: + type: object + properties: id: type: integer description: |