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

TypeDefinition should allow Edm.Primitive as underlying type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_CS01
    • Fix Version/s: V4.01_CS02
    • Component/s: CSDL JSON, CSDL XML
    • Labels:
      None
    • Environment:

      Applied

      Description

      In ODATA-1034 we added a DerivedTypeConstraint for the purpose of constraining a typedefinition that specified Edm.Primitive to be one of a subset of primitive types (i.e., a string or integer).

      While we originally defined this annotation term as being applied to a TypeDefinition, we missed the fact that TypeDefinition was originally defined with an UnderlyingType that precluded Edm.PrimitiveType.

      Defining a type definition with an underlying type of Edm.PrimitiveType requires that we also define semantics around what facets can be applied. For example, can MaxLength, Precision, or Scale be applied, and what is the meaning of these facets for instances for which those facets don't apply.

      The same semantics need to be defined for a property of type Edm.PrimitiveType.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: