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

GET Resource node does not return data types consistently #22

Open
jmartasek opened this issue Sep 15, 2015 · 4 comments
Open

GET Resource node does not return data types consistently #22

jmartasek opened this issue Sep 15, 2015 · 4 comments

Comments

@jmartasek
Copy link

When making an API call that might return a property with multiple values the data type for the property will vary based on what is actually returned. If a single value is returned then it is string with multiple values it is JSONArray. This means that the corresponding column data type differs which causes subsequent nodes to fail.

@danidi
Copy link

danidi commented Sep 15, 2015

Do you have a specific example for this? Maybe we can find a workaround.

@ianwdunlop
Copy link
Member

When it is one of these array or singleton type responses could you always convert the returned values to an array in the workflow? This is what we had to do with our OPS.js library that powers the explorer.

@jmartasek
Copy link
Author

Yep - a consistent return type of array would definitely fix it.

@ianwdunlop
Copy link
Member

I've asked a few times if this could be changed at the API level rather than the consumer having to deal with it but no luck so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants