Conversation
mtojek
left a comment
There was a problem hiding this comment.
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. |
mtojek
left a comment
There was a problem hiding this comment.
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.