{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.apparent_power/1.4.3/input.json",
  "title": "Electrical apparent power — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "amps-va",
        "va-amps",
        "amps-kva"
      ]
    },
    "primary": {
      "type": "number",
      "minimum": 0,
      "description": "Current in A, or VA when mode=va-amps"
    },
    "volts": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "RMS volts; L-L when phase=three (balanced sinusoidal)"
    },
    "phase": {
      "type": "string",
      "enum": [
        "single",
        "three"
      ],
      "description": "three = balanced sinusoidal line-to-line only (V_LL = √3 V_LN, equal line currents)"
    },
    "power_factor": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "Optional total power factor λ in [0, 1]. When supplied, REST/MCP return derived.estimated_real_power (P_est = S × λ). Not applied to VA/kVA. λ=0 means zero real power with non-zero apparent power (an ideal purely reactive sinusoidal load is one example). Legacy alias `pf` is accepted by the API adapter and normalized to power_factor; do not send both."
    }
  },
  "required": [
    "primary",
    "volts"
  ],
  "description": "Single-phase or balanced sinusoidal three-phase (L-L) AC apparent power: amps↔VA and amps→kVA. (calculation_version 1.4.3)"
}
