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

$root/EntitySet is not allowed by ABNF

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      Merge PR #64.
      Remove second sentence from OData-URL, section 5.1.1.14.5 and add another example.

      5.1.1.14.5 $root

      The $root literal can be used in expressions to refer to resources of the same service.

      Additional Example: function call returning the average rating of a given employee by their peers (employees in the same department)

      http://host/service/Employees('A1245')
      /self.AvgRating(RatedBy=@peers)
      ?@peers=$root/Employees/$filter(Department eq $it/Department)
      
      Show
      Merge PR #64 . Remove second sentence from OData-URL, section 5.1.1.14.5 and add another example. 5.1.1.14.5  $root The $root  literal can be used in expressions to refer to resources of the same service. Additional Example: function call returning the average rating of a given employee by their peers (employees in the same department) http: //host/service/Employees( 'A1245' ) /self.AvgRating(RatedBy=@peers) ?@peers=$root/Employees/$filter(Department eq $it/Department)
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-abnf/pull/64 https://github.com/oasis-tcs/odata-specs/pull/147

      Description

      OData-URL, 5.1.1.14.5 seems to allows $root only in a single-valued expression or within complex or collection literals. The ABNF allows also some collection-valued expressions, but not entity sets.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: