Implement validation error generation for comparison query operators

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query 2020-07-13, Query 2020-07-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Implement validation error generation for $eq, $lt, $lte, $gt, $gte, $ne, $in, and $nin along with unit tests verifying that generated errors conform to the expected format. Since this is the first ticket which tracks work for generating errors, the following will also be implemented under this ticket:

      • Introduce an 'ErrorAnnotation' type for MatchExpressions
      • General support for generating errors for path accepting expressions. This includes:
        • Generating errors for operators which expect a path but the path doesn't exist.
        • Appending 'consideredValues' when the operator makes use of implicit array traversal and appending 'consideredValue' when dealing with a single value.

            Assignee:
            Mihai Andrei
            Reporter:
            Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: