{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.lcm.input.json",
  "title": "Least common multiple — input",
  "type": "object",
  "properties": {
    "values": {
      "oneOf": [
        {
          "type": "array",
          "minItems": 2,
          "maxItems": 32,
          "items": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "string",
                "maxLength": 128,
                "pattern": "^\\s*[+-]?\\d{1,48}\\s*$"
              }
            ]
          }
        },
        {
          "type": "string",
          "maxLength": 4096,
          "pattern": "^[\\s,;]*[+-]?\\d{1,48}(?:[\\s,;]+[+-]?\\d{1,48})+[\\s,;]*$"
        }
      ]
    },
    "numbers": {
      "oneOf": [
        {
          "type": "array",
          "minItems": 2,
          "maxItems": 32,
          "items": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "string",
                "maxLength": 128,
                "pattern": "^\\s*[+-]?\\d{1,48}\\s*$"
              }
            ]
          }
        },
        {
          "type": "string",
          "maxLength": 4096,
          "pattern": "^[\\s,;]*[+-]?\\d{1,48}(?:[\\s,;]+[+-]?\\d{1,48})+[\\s,;]*$"
        }
      ]
    },
    "numsInput": {
      "type": "string",
      "maxLength": 4096,
      "pattern": "^[\\s,;]*[+-]?\\d{1,48}(?:[\\s,;]+[+-]?\\d{1,48})+[\\s,;]*$"
    }
  },
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "values"
      ]
    },
    {
      "required": [
        "numbers"
      ]
    },
    {
      "required": [
        "numsInput"
      ]
    }
  ],
  "description": "Exact least common multiple of2–32 signed integers of at most48 decimal digits each. Any zero gives0. Complete working and bounded listing/prime cross-checks; unsafe JSON integers must be decimal strings. (calculation_version 1.0.4)"
}
