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

Implement the JSON Schema "minimum" and "exclusiveMinimum" 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.3.1. Valid values

      The value of "minimum" MUST be a JSON number. The value of
      "exclusiveMinimum" MUST be a boolean.

      If "exclusiveMinimum" is present, "minimum" MUST also be present.

      5.1.3.2. Conditions for successful validation

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

      if "exclusiveMinimum" is not present, or has boolean value false,
      then the instance is valid if it is greater than, or equal to, the
      value of "minimum";

      if "exclusiveMinimum" is present and has boolean value true, the
      instance is valid if it is strictly greater than the value of
      "minimum".

      5.1.3.3. Default value

      "exclusiveMinimum", 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: