{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.mah_to_wh.input.json",
  "title": "mAh to Wh — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "mah-wh",
        "wh-mah"
      ]
    },
    "a": {
      "type": "number",
      "minimum": 0,
      "description": "mAh (mah-wh) or Wh (wh-mah); legacy"
    },
    "b": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Voltage V (legacy alias)"
    },
    "mAh": {
      "type": "number",
      "minimum": 0
    },
    "Wh": {
      "type": "number",
      "minimum": 0
    },
    "V": {
      "type": "number",
      "exclusiveMinimum": 0
    }
  },
  "required": [
    "a",
    "b"
  ],
  "description": "Convert battery capacity in milliamp-hours and voltage to watt-hours. (calculation_version 1.3.1)"
}
