{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/engineering.tolerance.worst_case/1.3.0/input.json",
  "title": "Worst-Case Tolerance Analysis — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "tolerances": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "number",
        "minimum": 0
      },
      "description": "Canonical non-negative tolerance magnitudes (Agent/MCP). REST still accepts this array."
    },
    "tol": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "number"
      },
      "description": "REST alias for tolerances[]. Negative values are magnitudes; sign is ignored with SIGN_IGNORED_FOR_TOLERANCE_MAGNITUDE."
    },
    "tol1": {
      "type": "number"
    },
    "tol2": {
      "type": "number"
    },
    "tol3": {
      "type": "number"
    },
    "tol4": {
      "type": "number"
    },
    "tol5": {
      "type": "number"
    },
    "tol6": {
      "type": "number"
    },
    "tol7": {
      "type": "number"
    },
    "tol8": {
      "type": "number"
    },
    "unit": {
      "type": "string",
      "description": "Optional shared unit label (echoed in result)."
    }
  },
  "anyOf": [
    {
      "required": [
        "tolerances"
      ]
    },
    {
      "required": [
        "tol"
      ]
    },
    {
      "required": [
        "tol1"
      ]
    }
  ],
  "description": "1-D linear worst-case tolerance magnitude stack Σ|tol| with RSS comparison (|cᵢ|=1). (calculation_version 1.3.0)"
}
