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

CSDL for Collection types is not clear on nullability of elements

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Closed]

      Description

      The CSDL spec for edm.CollectionType states:

      "The collection type can define relevant facets for scalar types."

      but does not specify what the relevant facets are. Also, it implies that a collection of collections cannot define facets (e.g. Nullable) for the element collections.

      Also note thet edm.TypeDefinition does not permit the use of the Nullable facet, so an element type defined by a TypeDefinition cannot help resolve the issue.

      So some definite questions:

      (1) Does an ordinary Collection type (e.g. "Collection(T)" or "TCollection" where TCollection is defined by a CollectionType without the use of facets) permit null element values?

      (2) Can an edm.CollectionType use the Nullable facet for scalar elements?

      (3) Can an edm.CollectionType use the Nullable facet for non-scalar elements? (It seems the answer is no).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              evan.ireland.2 Evan Ireland
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: