Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1550

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

    XMLWordPrintable

    Details

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

      Proposed

    • Proposal:
      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.

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: