Closed atorresveiga closed 1 year ago
We need to watch out for default_option_id
. According to the extension API schema this field should return an integer. However, it can return an integer or empty string. And as we see in the sample response above, the default option ID is sometimes sent as a string instead of an integer.
In my testing, if a component has a single, non-optional component option, the default option ID is sent as an integer; otherwise, it is sent as a string. I'll follow up on this with the extension team to check the expected behavior, but for now we should be prepared to handle the default option ID as an integer or string, and no default option as an empty string.
This task is about the work to process the composite product information.
Composite product information is part of the product request result.