Skip to content
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

Disallow importing ECS fields root level #1441

Merged

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Sep 12, 2023

Elastic Package should not import reusable ECS fields that are
defined at the top level, but are not intended to be reusable there.
Fail in that case for packages starting on Package Spec v3.

Test package requires a release of Package Spec v3. Package Spec v3 not needed for this test because field import fails before running validations.

Closes #1435.

@jsoriano jsoriano requested a review from a team September 12, 2023 12:16
@jsoriano jsoriano self-assigned this Sep 12, 2023
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.

Nice !
🚀

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

@jsoriano jsoriano merged commit 1c13099 into elastic:main Sep 12, 2023
1 check passed
@jsoriano jsoriano deleted the disallow-importing-ecs-fields-root-level branch September 12, 2023 15:47
bhapas pushed a commit to bhapas/elastic-package that referenced this pull request Sep 21, 2023
Elastic Package should not import reusable ECS fields that are
defined at the top level, but are not intended to be reusable there.
Fail in that case for packages starting on Package Spec v3.
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.

Disallow importing reusable ECS fields at the root level when not allowed
3 participants