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

Support common expressions as values in URL-JSON

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_CS01
    • Fix Version/s: V4.01_CS02
    • Component/s: ABNF, URL Conventions
    • Labels:
      None
    • Environment:

      Applied

    • Proposal:
      Hide

      Allow using common expressions as "values" in URL-JSON. This will allow to construct an array from properties as the left operand of  the in operator:

      $filter=[FirstName,LastName] in (["John","Doe"],["Jane","Smith"])

      Note: a list of arrays is already allowed as the right operand.

      Show
      Allow using common expressions as "values" in URL-JSON. This will allow to construct an array from properties as the left operand of  the in operator: $filter=[FirstName,LastName] in ([ "John" , "Doe" ],[ "Jane" , "Smith" ]) Note: a list of arrays is already allowed as the right operand.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-abnf/pull/5 https://www.oasis-open.org/committees/download.php/64118/odata-v4.01-wd06-part2-url-conventions-2018-10-19.docx  

      Description

      The in operator allows comparing a property to a list of values, e.g.

      $filter=Name in ('Milk', 'Cheese')

      For multi-part keys it would be helpful to allow comparison of a tuple of properties to a list of value tuples:

      $filter=(Firstname,Lastname) in (('John', 'Doe'),('Jane','Smith'))

       Note that this is natively supported by some databases:

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: