Allow to create annotations in CSDL with a less verbose format to increase adoption

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor
    • V4.02
    • Affects Version/s: V4.01_OS
    • Component/s: CSDL XML
    • None
    • Hide

      Allow embedding CSDL JSON annotation values according to 14 Vocabulary and Annotation as CData in CSDL XML

      <Annotation Term="Org.OData.Core.V1.Revisions">
        <![CDATA[
          [
            {
              "Version": "2023-03/PrivatePreview:analytics",
              "Kind": "Deprecated",
              "Description": "Private preview for Analytics APIs"
            }
          ]
        ]]>
      </Annotation>
      

       

      Show
      Allow embedding CSDL JSON annotation values according to 14 Vocabulary and Annotation as CData in CSDL XML <Annotation Term= "Org.OData.Core.V1.Revisions" >   <![CDATA[     [       {         "Version" : "2023-03/PrivatePreview:analytics" ,         "Kind" : "Deprecated" ,         "Description" : "Private preview for Analytics APIs"       }     ]   ]]> </Annotation>  

      CSDL XML annotations can be quite verbose. E.g. 

      <Annotation Term="Org.OData.Core.V1.Revisions">
        <Collection>
          <Record>
            <PropertyValue Property="Version" String="2023-03/PrivatePreview:analytics" />
            <PropertyValue Property="Kind" EnumMember="Org.OData.Core.V1.RevisionKind/Deprecated" />
            <PropertyValue Property="Description" String="Private preview for Analytics APIs" />
          </Record>
        </Collection>
      </Annotation>
      

      But Annotation can also be expressed in a much cleaner, more readable and less verbose form in CSDL JSON.

            Assignee:
            chrispre
            Reporter:
            chrispre
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: