Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29578

Implement the JSON Schema "maximum" and "exclusiveMaximum" keywords

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query

    Description

      Draft specification:

      5.1.2.1. Valid values

      The value of "maximum" MUST be a JSON number. The value of
      "exclusiveMaximum" MUST be a boolean.

      If "exclusiveMaximum" is present, "maximum" MUST also be present.

      5.1.2.2. Conditions for successful validation

      Successful validation depends on the presence and value of
      "exclusiveMaximum":

      if "exclusiveMaximum" is not present, or has boolean value false,
      then the instance is valid if it is lower than, or equal to, the
      value of "maximum";

      if "exclusiveMaximum" has boolean value true, the instance is
      valid if it is strictly lower than the value of "maximum".

      5.1.2.3. Default value

      "exclusiveMaximum", if absent, may be considered as being present
      with boolean value false.

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: