diff --git a/api/openapi/solidus-api.oas.yml b/api/openapi/solidus-api.oas.yml index 7f30147873a..25ce0d3cc97 100644 --- a/api/openapi/solidus-api.oas.yml +++ b/api/openapi/solidus-api.oas.yml @@ -7185,10 +7185,6 @@ components: type: array items: type: integer - option_values_attributes: - type: array - items: - $ref: '#/components/schemas/option-value-input' options: type: object description: '`Name` will be the name/presentation of the option type and `Value` will be the name/presentation of the option value. They will be created if not exist.' diff --git a/core/lib/spree/permitted_attributes.rb b/core/lib/spree/permitted_attributes.rb index 19c54a10545..763ed2148a8 100644 --- a/core/lib/spree/permitted_attributes.rb +++ b/core/lib/spree/permitted_attributes.rb @@ -131,7 +131,7 @@ module PermittedAttributes @@variant_attributes = [ :name, :presentation, :cost_price, :lock_version, :position, :track_inventory, - :product_id, :product, :option_values_attributes, :price, + :product_id, :product, :price, :weight, :height, :width, :depth, :sku, :cost_currency, option_value_ids: [], options: [:name, :value] ]