Support common expressions as values in URL-JSON

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

      Applied

    • 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.
    • 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  

      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:

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

              Created:
              Updated:
              Resolved: