-
Notifications
You must be signed in to change notification settings - Fork 118
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
Check values in arrays #835
Conversation
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.
A more generic non-blocking comment - it's really easy to get lost in the logic due to multiple switch-cases and "if" clauses. Maybe you should drop a few comments to show field examples including edge cases.
🌐 Coverage report
|
I have added comments, and refactored the code to explicitly return type errors instead of having the @mtojek let me know what you think. |
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.
Thank you! That's exactly what I meant.
Add validation for all values in arrays.
This is needed when some validation of the values is desired, apart of type validation. This is the case with IPs (elastic/integrations#3408) or event types (#615 (comment)).
This change was part of #771, but this is being delayed due to elastic/integrations#3016.