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

daemon: check the type of the input data #374

Open
FeelyChau opened this issue Jul 27, 2020 · 0 comments
Open

daemon: check the type of the input data #374

FeelyChau opened this issue Jul 27, 2020 · 0 comments
Labels

Comments

@FeelyChau
Copy link
Collaborator

FeelyChau commented Jul 27, 2020

We didn't check the input data from the api input. When an error is caused by a data type, the user will see an internal error message.
I think we should check all data type from outside of the application to avoid such problems.
There is a schema for this: https://www.npmjs.com/package/typescript-json-schema.

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

No branches or pull requests

1 participant