{
  "type": "object",
  "properties": {
    "op": {
      "type": "string",
      "enum": [
        "eval",
        "stats",
        "convert"
      ],
      "description": "\"eval\", \"stats\" or \"convert\"."
    },
    "expression": {
      "description": "For eval, e.g. \"(1200 * 1.08^5) / 12\".",
      "type": "string",
      "maxLength": 1000
    },
    "numbers": {
      "description": "For stats.",
      "minItems": 1,
      "maxItems": 100000,
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "value": {
      "description": "For convert: the amount.",
      "type": "number"
    },
    "from": {
      "description": "For convert: unit, e.g. \"mi\", \"lb\", \"f\", \"gib\".",
      "type": "string",
      "maxLength": 10
    },
    "to": {
      "description": "For convert: unit, e.g. \"km\", \"kg\", \"c\", \"gb\".",
      "type": "string",
      "maxLength": 10
    }
  },
  "required": [
    "op"
  ],
  "additionalProperties": false
}