{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-numerical-question-draft-with-output-parameters-schema.json",
  "title": "NumericalQuestionDraftWithOutputParameters",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-question-drafts-api-openapi.yml#/components/schemas/NumericalQuestionDraftWithOutputParameters",
  "properties": {
    "range_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Range Min",
      "description": "The lowest answer, or with reporting_quantum the lowest possible answer."
    },
    "range_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Range Max",
      "description": "The highest answer, or with reporting_quantum the highest possible answer."
    },
    "open_lower_bound": {
      "type": "boolean",
      "title": "Open Lower Bound",
      "description": "Whether the answer can fall below range_min.",
      "default": false
    },
    "open_upper_bound": {
      "type": "boolean",
      "title": "Open Upper Bound",
      "description": "Whether the answer can rise above range_max.",
      "default": false
    },
    "unit": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Unit",
      "description": "The unit of the answer, such as 'USD'."
    },
    "kind": {
      "anyOf": [
        {
          "$ref": "#/$defs/NumericKind"
        },
        {
          "type": "null"
        }
      ],
      "description": "discrete where only certain values can occur, as for a count or a policy rate set in quarter points; continuous for a measurement, even one published rounded."
    },
    "reporting_quantum": {
      "anyOf": [
        {
          "type": "number",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Reporting Quantum",
      "description": "The step the answer is published in: 1 for a count, 0.25 for a policy rate, 0.01 for earnings per share. Leave it out for an average or anything worked out."
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "supplementary_information": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Supplementary Information"
    },
    "clarifications": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Clarifications"
    },
    "type": {
      "type": "string",
      "const": "numerical",
      "title": "Type"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "id": {
      "type": "integer",
      "title": "Id"
    }
  },
  "type": "object",
  "required": [
    "title",
    "type",
    "created_at",
    "updated_at",
    "id"
  ],
  "$defs": {
    "NumericKind": {
      "type": "string",
      "enum": [
        "continuous",
        "discrete"
      ],
      "title": "NumericKind",
      "description": "Values:\n- continuous: The underlying quantity is continuous, even when reported rounded.\n- discrete: The underlying quantity lies on an intrinsic lattice, such as a count."
    }
  }
}