Describe the feature
Currently some values have defaults (product SKU, priceValidUntil…). This is handled through setIfEmpty function.
We should allow to opt out from default values if for whatever reason we want to discard a property. So instead of just checking for falseness, we might check for undefined and let users override this.
In that case, remove the property from the output if set to null.
{
...
sku: null, // explicitly left out
}
Additional information
Describe the feature
Currently some values have defaults (product SKU, priceValidUntil…). This is handled through
setIfEmptyfunction.We should allow to opt out from default values if for whatever reason we want to discard a property. So instead of just checking for falseness, we might check for undefined and let users override this.
In that case, remove the property from the output if set to
null.Additional information