Skip to content

Issue with Expansion handling of type maps and @none #264

Closed
@kasei

Description

@kasei

Expansion algorithm step 13.8.3.7.5:

Otherwise, if container mapping includes @type initialize types to the concatenation of expanded index with any existing values of @type in item. If expanded index is @none, do not concatenate expanded index to types. Add the key-value pair (@type-types) to item.

Based on test tm012, I don't think this key-value pair is meant to be added to item in the case that expanded index is @none. If that is the case, this text can likely be simplified, as the "If expanded index is @none" condition will apply to the entire body of this step.

Also, the word choice of "concatenation" is confusing here. By context, I believe that what is being described is an array, types, that should possibly contain expanded index, and definitely contain any existing values of @type in item. Is there a way to improve this language to not risk confusion with string concatenation?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions