Rules "ordinalIndex" and "complexColPath" are too restrictive: negative indexes and index with type-cast

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • V4.01_ERRATA01
    • Affects Version/s: V4.01_OS
    • Component/s: ABNF
    • None
    • Hide

      Allow negative values for index segments in paths.

      Allow index segments after type-cast segments.

      Rephrase optional path segments to not be empty.

      Show
      Allow negative values for index segments in paths. Allow index segments after type-cast segments. Rephrase optional path segments to not be empty.
    • Show
      https://github.com/oasis-tcs/odata-abnf/pull/29/files  

      4.01 added the ability to index into ordered collections from the end, using negative values for index segments, see 11.2.6.8 Requesting an Individual Member of an Ordered Collection.

      The specification does not explicitly forbid this indexing after a type-cast segment, but it is not allowed by rule complexColPath. This seems to be an accident as it is also not mentioned in ODATA-820.

      Trivial: some optional path segments have empty alternatives, making them "doubly optional". This complicates automatic processing of the ABNF and is bad style.

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

              Created:
              Updated:
              Resolved: