serving_quantity_unit is not returned if there is a space in Serving Size between the size and the unit. #11015
Labels
API READ
All READ APIs include Product, Search…
API
Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…)
🎯 P1
serving size
What
If someone updates the product serving size to contain a space between the size and the unit, it makes the API not return the
serving_quantity_unit
.For example, if I enter "5 g”, there will be no
serving_quantity_unit
returned from the API, but if I enter "5g”, everything is ok, andserving_quantity_unit
is there.Steps to reproduce the behavior
On the web, try to edit "Serving Size" of any product to contain space between the size and the unit.
Expected behavior
The response should have
serving_quantity_unit
returned in both scenarios(or maybe consider not allowing spaces).Type of device
REST-API
The text was updated successfully, but these errors were encountered: