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

Collections of Edm.PrimitiveType are problematic in JSON

    XMLWordPrintable

    Details

    • Type: Bug
    • 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:

      [Proposed]

      Description

      In adding Edm.Primitive as a type specifying "any primitive type" we introduced a problem for JSON. We have no way to annotate individual elements of a JSON array, so we have no way of specifying the types of a heterogeneous collection of primitive types. In some cases these might be heuristically determined, but not all. We might consider disallowing collections of Edm.Primitive as being underspecified. In the future it would be non-breaking to add these as long as we solved the primitive types in a json array problem.

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo
              Reporter:
              mikep Michael Pizzo
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: