-
Notifications
You must be signed in to change notification settings - Fork 74
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
Require type group or nested for fields with subfields #629
Require type group or nested for fields with subfields #629
Conversation
test integrations |
Created or updated PR in integrations repostiory to test this vesrion. Check elastic/integrations#8048 |
💚 Build Succeeded
cc @jsoriano |
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
- name: object_with_subfields | ||
description: This field should be of type group, because it contains subfields. | ||
type: object | ||
object_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.
object_type
is not necessary here, 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.
Yeah, it wouldn't be neccesary to produce this validation error, but I added it so it doesn't trigger also the error about missing object_type
for object
.
test integrations |
Created or updated PR in integrations repostiory to test this vesrion. Check elastic/integrations#8065 |
Thanks Mario for fixing the integrations jobg! From the packages failed in elastic/integrations#8065, noone fails by linting, so I will merge this. |
What does this PR do?
Require type group for fields with subfields.
Why is it important?
Fields with subfields should not have a definition on their own. This would lead to ambiguity if for
example an object would generate a dynamic mapping, but also definitions for their subelements.
The only cases where a field can contain subfields is when it is of type
group
, ornested
.Checklist
test/packages
that prove my change is effective.spec/changelog.yml
.Related issues