XMLWordPrintable

    Details

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

      Remove restriction from CSDL XML, allow services that only serve a service document (with an empty list of root resources) and a metadata document in XML or JSON.
      Adjust XSD to allow zero elements.

      Show
      Remove restriction from CSDL XML, allow services that only serve a service document (with an empty list of root resources) and a metadata document in XML or JSON. Adjust XSD to allow zero elements.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/66 https://github.com/oasis-tcs/odata-csdl-schemas/pull/82

      Description

      CSDL currently requires that

      13    Entity Container

      Each metadata document used to describe an OData service MUST define exactly one entity container.

      and then for CSDL XML only

      Element edm:EntityContainer

      The edm:EntityContainer MUST contain one or more edm:EntitySetedm:Singletonedm:ActionImport, or edm:FunctionImport elements.

      This disallows "empty" services without any resources except the service document and the metadata document, or requires such services to not support metadata in CSDL XML

      While this restriction may make "business sense", from a technical and tools perspective it is an unnecessary hurdle, requiring special handling in tools.

        Attachments

          Activity

            People

            • Assignee:
              heiko.theissen Heiko Theissen
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: