-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Serialization of null fields is enabled by default here, which means that null values will appear in the JSON output.
This causes a problem: for example, when creating a product, if you only fill in the src of the product image, the interface will throw an error indicating an invalid format for the image id. The reason is that the parameters passed to WooCommerce include {id: null}. In reality, however, the id field is optional and can be omitted. If we exclude null fields during serialization, WooCommerce will not report the error.

Metadata
Metadata
Assignees
Labels
No labels