-
-
Notifications
You must be signed in to change notification settings - Fork 186
feat(cli): add validation for connector api #150
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Kai-ros
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I offered a couple suggestions in the server
serhalp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 This is beautiful!
Someone's read Parse, don't validate! 😁
| // Validate each operation's params | ||
| for (let i = 0; i < parsed.data.length; i++) { | ||
| const op = parsed.data[i] | ||
| if (!op) continue | ||
| try { | ||
| validateOperationParams(op.type, op.params) | ||
| } catch (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com>

cc: @Kai-ros