-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nutrients should accept a String #908
Comments
@g123k I still haven't understood the added value of '-' compared to null. I cannot be helpful here. |
I know your point on |
We use '-' instead of an empty string, or an undefined / null value to make it explicitly clear that we know there is no value specified for this nutrient on the packaging. When we import or export data as CSV for instance, using '-' makes it possible to differentiate nutrients for which we don't know anything (maybe it is on the packaging but it has not been entered yet) and nutrients that we know are not specified. |
It's better dealt with by #910, with both a double and a modifier, instead of a single String. |
+1, closing this one |
Hi everyone,
Currently, the
Nutriments
class is based ondouble?
for values.However, the server may also have a "-" value.
What's the best way to handle this change?
Because I think, it will clearly break the implementation.
Example from the API:
At the same type, we should also support #584
Any suggestion @monsieurtanuki?
The text was updated successfully, but these errors were encountered: