You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readFrac requires a string as input, so users must ensure that the quantity field parses as a string, either by unnecessarily adding a denominator, e.g.
- quantity: 1/1
or by quoting the value:
quantity: '1'
I think it would be nice to support JSON/YAML integers directly (in addition to fractions), so users could just write:
quantity: 1
which is more like what I would do in a plain text file.
The text was updated successfully, but these errors were encountered:
We currently use
readFrac
to read quantities from recipes stored in JSON/YAML:readFrac
requires a string as input, so users must ensure that the quantity field parses as a string, either by unnecessarily adding a denominator, e.g.or by quoting the value:
I think it would be nice to support JSON/YAML integers directly (in addition to fractions), so users could just write:
which is more like what I would do in a plain text file.
The text was updated successfully, but these errors were encountered: