{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.watts_to_va/1.3.1/input.json",
  "title": "Watts to VA — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "w-va",
        "va-w"
      ],
      "description": "w-va = watts→VA; va-w = VA→watts"
    },
    "a": {
      "type": "number",
      "minimum": 0,
      "description": "Legacy: P (W) or S (VA)"
    },
    "b": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1,
      "description": "Legacy alias for power_factor"
    },
    "P": {
      "type": "number",
      "minimum": 0,
      "description": "Real power (W) for w-va"
    },
    "S": {
      "type": "number",
      "minimum": 0,
      "description": "Apparent power (VA) for va-w"
    },
    "power_factor": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1,
      "description": "Power factor λ in (0, 1] — required"
    },
    "factor": {
      "type": "number",
      "description": "Optional scale (default 1)"
    }
  },
  "required": [
    "a",
    "b"
  ],
  "description": "Convert real power (W) and apparent power (VA) using power factor — PF required (electrical.active_power_from_apparent_power / apparent_from_P_pf). (calculation_version 1.3.1)"
}
