-
Notifications
You must be signed in to change notification settings - Fork 116
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
Validate the proper value of event.dataset #968
Conversation
The event.dataset field must have as value the name of the package and the name of the data stream, separated by a dot.
Fix the value in the field definition using a `constant_keyword`: | ||
``` | ||
- name: event.dataset | ||
type: constant_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.
This is not possible now. We don't allow to override the type of an imported value. But I think it would make sense to support the change from keyword to constant_keyword. I will open a PR to support it.
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.
Added in #969.
🌐 Coverage report
|
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
If the
event.dataset
anddata_stream.dataset
fields are used, they must have as values the name of the package and the name of the data stream, separated by a dot.Fixes elastic/package-spec#217.
Part of elastic/package-spec#399.