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

Nested fields for all types in common.Schema #7583

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jul 12, 2018

Allow to get nested fields from other types in mapstriface in common.Schema. It was already allowed on string and interface{}, added a test also to check the behaviour.

Not sure however if this is the intended behaviour.

@jsoriano jsoriano added discuss Issue needs further discussion. libbeat labels Jul 12, 2018
@jsoriano jsoriano force-pushed the schema-nested-fields branch 2 times, most recently from 2619e42 to 436e6c2 Compare July 12, 2018 16:03
Copy link
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I'm +1 to this change, for consistency and convenience reasons. Thanks for adding the tests as well. LGTM!

@jsoriano jsoriano changed the title Nested fields for dicts in common.Schema Nested fields for all types in common.Schema Jul 13, 2018
@jsoriano
Copy link
Member Author

@ruflin wdyt?

@ruflin ruflin removed the discuss Issue needs further discussion. label Jul 13, 2018
@ruflin ruflin merged commit 4e027fd into elastic:master Jul 13, 2018
@ruflin
Copy link
Member

ruflin commented Jul 13, 2018

+1 on this change. Tried to think of some edge cases that it could break but couldn't come up with any.

@jsoriano jsoriano deleted the schema-nested-fields branch November 7, 2018 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants