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
There is a parameter serving_quantity
with no corresponding ProductField
#326
Comments
Just to add that I've tried setting As an alternative to a new |
A hacky workaround I'm employing, a delegate class, which at least demonstrates that the API supports the
|
I am going to take a look at this |
It's indeed missing, opening a PR in a sec |
@wu-lee Correct me if I'm wrong: you expect something like |
Thanks yes, exactly. |
Is your feature request related to a problem? Please describe.
I want to access the
serving_quantity
parameter, which I believe is a numeric value in grams. It is toserving_size
(a String) whatproduct_quantity
is toquantity
: a parsed and normalised numeric version of the string.However, I can't without being able to request it via an appropriate
ProductField
set in the query, and there isn't one (I checked the source code too).There also seems to be no way to select only products which have this value set, as there is for
product_quantity
.Describe the solution you'd like
Please add this field so this value can be retrieved. Please also add a
states
tag which allows me to set a TagFilter to select only products which have this value defined.Describe alternatives you've considered
I suppose I could abandon the Dart library and roll my own HTTP based client? But that seems counter-productive, I'm sure OFF would prefer me to use this library.
Possibly I could try and parse and normalise the string
serving_size
myself, but this seems hazardous, and not in keeping with the intent of this library.Additional context
I am using the library version 1.3.8 on Android. I've checked the source of 1.7.0 and these features appear to be missing there too.
The text was updated successfully, but these errors were encountered: