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

Idea: auto typecast properties to the their correct types #47

Open
chrisjhoughton opened this issue Nov 23, 2016 · 1 comment
Open

Idea: auto typecast properties to the their correct types #47

chrisjhoughton opened this issue Nov 23, 2016 · 1 comment

Comments

@chrisjhoughton
Copy link
Contributor

Let's say someone passes a string to a connector, but it should be a number. However, it's a numeric string. The third party API might error unless the type is a pure number.

Wouldn't it be smart if we automatically typecasted the parameter to a number? It'd boost the reliability of connectors significantly.

@aychtang
Copy link

You can attempt a JSON parse and check the results type if there is one. We do this in the logs frontend as well.

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

No branches or pull requests

3 participants