Capabilities: FilterRestrictions and SortRestrictions for navigation properties

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • V4.01_WD01
    • Affects Version/s: V4.0_ERRATA02
    • Component/s: Vocabularies
    • None
    • Environment:

      Annotations

    • Hide

      Add three new properties, FilterFunctions, FilterRestrictions, and SortRestrictions, to Capabilities.NavigationPropertyRestriction, such that the full definition becomes:

      <ComplexType Name="NavigationPropertyRestriction">
      <Property Type="Edm.NavigationPropertyPath" Name="NavigationProperty">
      <Annotation Term="Core.Description" String="Navigation properties can be navigated"/>
      </Property>
      <Property Type="Capabilities.NavigationType" Name="Navigability">
      <Annotation Term="Core.Description" String="Navigation properties can be navigated to this level"/>
      </Property>
      <Property Type="Collection(Edm.String)" Name="FilterFunctions">
      <Annotation Term="Core.Description" String="List of functions and operators supported in $filter. If null, all functions and operators may be attempted."/>
      </Property>
      <Property Type="Capabilities.FilterRestrictionsType" Name="FilterRestrictions">
      <Annotation Term="Core.Description" String="Restrictions on $filter expressions"/>
      </Property>
      <Property Type="Capabilities.SortRestrictionsType" Name="SortRestrictions">
      <Annotation Term="Core.Description" String="Restrictions on $orderby expressions"/>
      </Property>
      </ComplexType>

      Show
      Add three new properties, FilterFunctions, FilterRestrictions, and SortRestrictions, to Capabilities.NavigationPropertyRestriction, such that the full definition becomes: <ComplexType Name="NavigationPropertyRestriction"> <Property Type="Edm.NavigationPropertyPath" Name="NavigationProperty"> <Annotation Term="Core.Description" String="Navigation properties can be navigated"/> </Property> <Property Type="Capabilities.NavigationType" Name="Navigability"> <Annotation Term="Core.Description" String="Navigation properties can be navigated to this level"/> </Property> <Property Type="Collection(Edm.String)" Name="FilterFunctions"> <Annotation Term="Core.Description" String="List of functions and operators supported in $filter. If null, all functions and operators may be attempted."/> </Property> <Property Type="Capabilities.FilterRestrictionsType" Name="FilterRestrictions"> <Annotation Term="Core.Description" String="Restrictions on $filter expressions"/> </Property> <Property Type="Capabilities.SortRestrictionsType" Name="SortRestrictions"> <Annotation Term="Core.Description" String="Restrictions on $orderby expressions"/> </Property> </ComplexType>
    • Show
      https://github.com/oasis-tcs/odata-vocabularies/commit/49fcd7b5ce9ec172397a3592954ff9eb9ca9d56d

      With the addition of cross-service navigation we need means to express that a navigation property cannot be used in filter or sort expressions.

            Assignee:
            Michael Pizzo (Inactive)
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: