Closed stephanegigandet closed 2 weeks ago
We currently use 4 levels for all food preferences, but some preferences like allergens could have a single binary switch.
We should define a new property in https://world.openfoodfacts.org/api/v0/attribute_groups to indicate which properties should/could be binary.
We will add an attribute "binary" that says what are the values corresponding to on / off
eg: "binary": {"on": "important", "off": "not important"}.
"binary": {"on": "important", "off": "not important"}
We currently use 4 levels for all food preferences, but some preferences like allergens could have a single binary switch.
We should define a new property in https://world.openfoodfacts.org/api/v0/attribute_groups to indicate which properties should/could be binary.
Part of
8919