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

Clarify where collection of primitive type can be used

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: CSDL JSON, CSDL XML
    • Labels:
      None
    • Proposal:
      Hide

      Change to

      • Collection(Edm.PrimitiveType)
        • cannot be used.

      After reopening:

      Add note to [OData-JSON]: A collection of primitive values that occurs in a property of type Edm.Untyped is interpreted as a collection of Edm.BooleanEdm.String and Edm.Decimal, depending on the Javascript type.

      Clarify that Validation.DerivedTypeConstraint can contain only types that would be allowed as type of the constrained member.

      Show
      Change to Collection(Edm.PrimitiveType) cannot be used. After reopening: Add note to  [OData-JSON] : A collection of primitive values that occurs in a property of type  Edm.Untyped  is interpreted as a collection of  Edm.Boolean ,  Edm.String  and  Edm.Decimal , depending on the Javascript type. Clarify that  Validation.DerivedTypeConstraint  can contain only types that would be allowed as type of the constrained member.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/62 https://www.oasis-open.org/apps/org/workgroup/odata/download.php/70018/odata-json-format-v4.01-errata01.docx https://github.com/oasis-tcs/odata-vocabularies/pull/192

      Description

      Section 3.4 Built-In Abstract Types states that

      • Collection(Edm.PrimitiveType)
        • cannot be used as the type of a property or term.
        • cannot be used as the type of a parameter or the return type of an action or function.

      Where can it be actually used?

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo
              Reporter:
              handl Ralf Handl
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: