Skip to content
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

Need way of converting from string in JSON request result to uniTypes type #45

Open
dcolli23 opened this issue Sep 21, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request generalization This issue deals with generalization of previously written code

Comments

@dcolli23
Copy link
Owner

Description

In the pipeline of going from the received JSON document to parsing the document into the Ingredient object (and subsequent Nutrient objects), we need a way of converting from the string describing the unit of the nutrient serving in the JSON file to a uniTypes type.

Proposal

I'm thinking the best way to do this is to create a map (perhaps in uniTypes) that gives us the appropriate type for a given string. I don't think there's a better way to do this but I'm not sure.

NOTE: This issue must be solved for completion of #44

@dcolli23 dcolli23 added enhancement New feature or request generalization This issue deals with generalization of previously written code labels Sep 21, 2020
@dcolli23 dcolli23 self-assigned this Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request generalization This issue deals with generalization of previously written code
Projects
None yet
Development

No branches or pull requests

1 participant