Skip to content

Require object_type for object fields#628

Merged
jsoriano merged 3 commits intoelastic:mainfrom
jsoriano:object-type-mandatory
Oct 2, 2023
Merged

Require object_type for object fields#628
jsoriano merged 3 commits intoelastic:mainfrom
jsoriano:object-type-mandatory

Conversation

@jsoriano
Copy link
Copy Markdown
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

@jsoriano jsoriano requested a review from andrewkroh October 2, 2023 12:15
@jsoriano jsoriano requested a review from a team as a code owner October 2, 2023 12:15
@jsoriano jsoriano self-assigned this Oct 2, 2023
@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

cc @jsoriano

Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

[Validation] Detect incorrectly defined dynamic mappings [Change Proposal] Properly support dynamic template mappings

3 participants