Skip to content

Conversation

@jsoriano
Copy link
Member

@jsoriano jsoriano commented Apr 16, 2024

Fixes issues happening when validating fields defined as numeric keywords with array normalization, and documents can contain empty arrays.

Arrays of numeric keywords are converted to arrays of strings, instead of a string of the array.

This fixes validation issues like this one where the empty array should be valid:

field "tags" is not normalized as expected: expected array, found "[]" (string)

Related to #1746.

@jsoriano jsoriano requested a review from a team April 16, 2024 09:35
@jsoriano jsoriano self-assigned this Apr 16, 2024
@jsoriano
Copy link
Member Author

test integrations

@elasticmachine
Copy link
Collaborator

Created or updated PR in integrations repository to test this version. Check elastic/integrations#9606

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jsoriano jsoriano merged commit 74cfa23 into elastic:main Apr 16, 2024
@jsoriano jsoriano deleted the array-normalization-numeric-keywords branch April 16, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants