Skip to content

Commit

Permalink
Type needs to be nested within the field name
Browse files Browse the repository at this point in the history
  • Loading branch information
lksnyder0 committed Jun 17, 2024
1 parent c9e52bf commit 8bfb56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generators/es_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def all_component_templates(
dict_add_nested(field_mappings, name_parts, entry_for(field))
fieldset_settings = fieldset.get("settings", None)
if fieldset.get("type", "group") in ["object", "nested"]:
field_mappings["type"] = fieldset.get("type")
field_mappings[fieldset_name]["type"] = fieldset.get("type")

save_component_template(
fieldset_name,
Expand Down

0 comments on commit 8bfb56f

Please sign in to comment.