Skip to content

Mapping slots with multiple enumerations as a range #2128

@martinwellman

Description

@martinwellman

Mapping of slots with multiple enumerations as a range is not currently supported. At the moment, if multiple enumerations are present in the range, then no enumeration mapping occurs for the slot, since the range (which is a list in string form, eg. "['myenum1', 'myenum2']") is not recognized as an enum as returned by SchemaView.all_enums().

To fix this, we should first convert the string form of the range to a list (or a single string if it is not a list), and then iterate over all the elements of the list to try the permissible_value_derivations.

Support for multiple enumerations as a range is supported with branch multi-enum

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