Clarify whether Validation.AllowedValues can be applied to collection-valued properties

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: None
    • Component/s: Vocabularies
    • None
    • Environment:

      Proposed

    • Hide

      Two alternatives:

      1. Only allow application to single-valued primitive-typed model elements and to type definitions. Restricting values of a collection-valued property can be achieved by introducing a type definition that is annotated with Validation.AllowedValues.
      2. Allow annotating single- and collection-valued primitive-typed model elements, and call out that the annotation applies to items of a collection-valued model element, similar to the type facets MaxLength etc.
      Show
      Two alternatives: Only allow application to single-valued primitive-typed model elements and to type definitions. Restricting values of a collection-valued property can be achieved by introducing a type definition that is annotated with Validation.AllowedValues . Allow annotating single- and collection-valued primitive-typed model elements, and call out that the annotation applies to items of a collection-valued model element, similar to the type facets MaxLength etc.

      Validation.AllowedValues takes an array of primitive values, so it is obvious how it constrains the value range of a single-valued primitive-typed model element.

      Can this annotation also be applied to model elements whose type is a collection of primitive values, and the value constraint applies to each item in the collection?

            Assignee:
            Unassigned
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: