-
Notifications
You must be signed in to change notification settings - Fork 127
Accept null as array #1501
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
Accept null as array #1501
Conversation
|
/test |
1 similar comment
|
/test |
💔 Build Failed
Failed CI StepsHistory
cc @jsoriano |
| Fields: []FieldDefinition{ | ||
| { | ||
| Name: "id", | ||
| Type: "keyword", | ||
| }, | ||
| }, |
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.
Should this be an empty array ?
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.
An empty array would work. The problem solved here is when a field defined as group or nested is null in a document, like onepassword.details here elastic/integrations@09a01f2#diff-76a51622c000706ccf925266e2e1255f954f7b55380135342a9d51aa3b81b5cdL55
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.
Ok, I misunderstood the definition field. I thought it was resulting definition built.
Just to be sure, it's being compared the value nil of a field null_array against that definition/schema in definition. Would that be right?
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.
Yes, this would be like validating a document with this JSON content:
{
"null_array": null
}
With this fields definition:
- name: null_array
type: group
fields: ...
Validation fails without this change.
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.
Thanks!
|
Failure in AWS test package seems unrelated, merging. |
Accept
nullin test documents for values when an array of objects is expected.