{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.sum.input.json",
  "title": "Sum / addition — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "enum": [
        "sum",
        "add",
        "total",
        "long",
        "long-addition",
        "long_addition"
      ]
    },
    "sumInput": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    },
    "values": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 65536
        },
        {
          "type": "array",
          "minItems": 1,
          "maxItems": 10000,
          "items": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[+-]?(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$"
              },
              {
                "type": "number",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            ]
          }
        }
      ]
    },
    "input": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    },
    "a": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    }
  },
  "anyOf": [
    {
      "required": [
        "sumInput"
      ]
    },
    {
      "required": [
        "values"
      ]
    },
    {
      "required": [
        "input"
      ]
    },
    {
      "required": [
        "a"
      ]
    }
  ],
  "description": "Raw numeric-list string (sumInput/input/a/values), or values array of numeric strings and safe JSON numbers. Matching aliases require identical trimmed tokens in order. Separators: commas, whitespace, semicolons, pipes. Runtime validates nonblank, finite/nonzero-underflow,10000 values,65536 total characters,512 per token,48 significant digits/fraction places for plain decimals. Long:1–32 nonnegative plain decimals,48 aligned columns. JSON numeric integers must be safe; send large exact integers as strings. Invalid types, unknown keys and conflicting aliases rejected. (calculation_version 1.0.3)"
}
