Validation term for allowed terms in Annotation Paths

    • Hide

      Mention term Validation.AllowedTerms in CSDL sections 14.4.1.3 Annotation Path.

      Add to Validation vocabulary:

      <Term Name="AllowedTerms" Type="Collection(Core.QualifiedTermName)" AppliesTo="Term Property">
        <Annotation Term="Core.Description"
          String="Annotate a property or term of type AnnotationPath to restrict the terms that can be targeted by the path." />
        <Annotation Term="Core.LongDescription"
          String="Annotation path expressions assigned to the annotated term or property are intended to resolve to annotations with one of the listed terms. For forward compatibility, clients should be prepared for the annotation to reference terms besides those listed." />
        <Annotation Term="Core.RequiresType" String="Edm.AnnotationPath" />
      </Term>
      

      Add to Core vocabulary:

      <TypeDefinition Name="QualifiedTermName" UnderlyingType="Edm.String">
        <Annotation Term="Core.Description" String="The qualified name of a term in scope." />
      </TypeDefinition>
      
      Show
      Mention term Validation.AllowedTerms in CSDL sections 14.4.1.3 Annotation Path. Add to Validation vocabulary: <Term Name= "AllowedTerms" Type= "Collection(Core.QualifiedTermName)" AppliesTo= "Term Property" > <Annotation Term= "Core.Description" String= "Annotate a property or term of type AnnotationPath to restrict the terms that can be targeted by the path." /> <Annotation Term= "Core.LongDescription" String= "Annotation path expressions assigned to the annotated term or property are intended to resolve to annotations with one of the listed terms. For forward compatibility, clients should be prepared for the annotation to reference terms besides those listed." /> <Annotation Term= "Core.RequiresType" String= "Edm.AnnotationPath" /> </Term> Add to Core vocabulary: <TypeDefinition Name= "QualifiedTermName" UnderlyingType= "Edm.String" > <Annotation Term= "Core.Description" String= "The qualified name of a term in scope." /> </TypeDefinition>
    • Show
      https://github.com/oasis-tcs/odata-vocabularies/pull/18 https://www.oasis-open.org/committees/download.php/64129/odata-csdl-json-v4.01-wd05-2018-10-22.docx   https://www.oasis-open.org/committees/download.php/64130/odata-csdl-xml-v4.01-wd06-2018-10-22.docx  

      Annotation paths allow referencing annotations.

      Often the referenced annotation has to have one of certain "allowed" terms that can be interpreted in that context.

      Currently these "allowed terms" cannot be expressed in the term or property definition.

            Assignee:
            Unassigned
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: