Create $_internalSchemaMinItems and $_internalSchemaMaxItems MatchExpressions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.10
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2017-07-10, Query 2017-07-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Proposed Syntax

      $_internalSchemaMinItems will be a new MatchExpression. It accepts a nonnegative integer <size> and matches an array whose length is at least that number:

      { <field>: { $_internalSchemaMinItems: <size> } }
      

      $_internalSchemaMaxItems is similar, but matches arrays whose length is no larger than <size>.

      { <field>: { $_internalSchemaMaxItems: <size> } }
      

      This will allow us to implement the JSON Schema "minItems" and "maxItems" keywords.

              Assignee:
              Nicholas Zolnierz
              Reporter:
              Kyle Suarez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: