You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the "_attributes" section of the resolution response is a flat object, where each key is the name of an attribute. Allowing the attributes to be nested will allow users to save results in an index that follows the guidelines and best practices for the Elastic Common Schema (ECS), which encourages nesting by way of prefixes.
If this feature is released at the same time as #73, then it would create one breaking change instead of two.
Proposal
Allow periods (.) to be used in the attribute names of entity models, and used them to nest fields in the "_attributes" section of the resolution response.
Example
Entity model - Attribute names are flat and may contain periods. This example shows attributes which are grouped by prefixes.
Resolution request - Attribute names are flat and retain their periods. Nesting would not be allowed at this point. Rationale: Attributes may be arrays of values or objects with values and params (source), and allowing nested attributes here would make it difficult to determine whether the nested object was an attribute value or a nested attribute name.
Currently the
"_attributes"
section of the resolution response is a flat object, where each key is the name of an attribute. Allowing the attributes to be nested will allow users to save results in an index that follows the guidelines and best practices for the Elastic Common Schema (ECS), which encourages nesting by way of prefixes.If this feature is released at the same time as #73, then it would create one breaking change instead of two.
Proposal
Allow periods (
.
) to be used in the attribute names of entity models, and used them to nest fields in the"_attributes"
section of the resolution response.Example
Entity model - Attribute names are flat and may contain periods. This example shows attributes which are grouped by prefixes.
Resolution request - Attribute names are flat and retain their periods. Nesting would not be allowed at this point. Rationale: Attributes may be arrays of values or objects with values and params (source), and allowing nested attributes here would make it difficult to determine whether the nested object was an attribute value or a nested attribute name.
Resolution response - Attribute names are split and nested by their periods.
The text was updated successfully, but these errors were encountered: