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

Require object_type for object fields #628

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Oct 2, 2023

What does this PR do?

Make object_type mandatory for fields of type object in Package Spec v3.

Why is it important?

A field of type object without object_type probably assumes that the type should be keyword, but Fleet is producing
invalid mappings (see #624). So better to disallow these mappings to remove ambiguities.

Checklist

Related issues

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @jsoriano

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.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants