-
-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
- Would you be willing to help implement this feature?
harlan-zw and IsraelOrtuno
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request