cancel
Showing results for 
Search instead for 
Did you mean: 

[2.2.2][REST] required configurable attributes should not be required value in configurable product

0 Kudos

[2.2.2][REST] required configurable attributes should not be required value in configurable product

Feature request from davidverholen, posted on GitHub Jan 16, 2018

Preconditions

  1. Magento 2.2.2 Commerce Edition (Most likely the same behavior in OS)
  2. API Integration in place

Steps to reproduce

  1. Create a custom required, global product attribute that can be used for configurations (e.g. select)
  2. Create one or more simple products with different values for the attribute
  3. Create a configurable product over the rest api for the created simple(s) and leave the required attribute empty (I think the API point is only important for reproducing since creating the product in the backend would most likely lead to have the default value / first value in select for the attribute submitted)

Expected result

  1. The created attribute should not be required for the configurable product when it is used for configurations

Actual result

  1. The attribute is required for the configurable product "message":"Product with id \"%1\" does not contain required attribute \"%2\"

Current Workaround is to set the attribute to not required