Closed mkllnk closed 4 months ago
@mkllnk The import feature has been merged and this should be tested with it, right?
The import feature has been merged and this should be tested with it, right?
Right. I tested and found that setting arrays to nil
broke an assumption of the importer. So I'm keeping the empty array for now.
It would be even better if the importer knew if a property is a collection instead of checking for an array value. But for now this is good enough and we can improve it when we have a use case for it.
This has been rebased on the main branch.
@lecoqlibre This has been waiting for two months now. Is there any concern over merging this?
The constructors were setting an empty string or the number zero depending on the type of the attribute. This made it impossible to tell if the value was actively set to zero or if it was not set at all.
Now it's possible to omit the stockLimitation attribute for unlimited stock.
This change also reduces the JSON file size by omitting these values.