{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.ev_voltage.input.json",
  "title": "eV to Volts — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "ev-v-e",
        "ev-v-c",
        "v-ev-e",
        "v-ev-c"
      ],
      "description": "ev-v-e / ev-v-c solve voltage; v-ev-e / v-ev-c solve energy. Default ev-v-e."
    },
    "direction": {
      "type": "string",
      "enum": [
        "energy_to_voltage",
        "voltage_to_energy"
      ],
      "description": "Semantic alias for mode when mode is omitted"
    },
    "energy_eV": {
      "type": "number",
      "description": "Energy in electronvolts (energy→voltage)"
    },
    "voltage_V": {
      "type": "number",
      "description": "Potential difference in volts (voltage→energy)"
    },
    "charge_value": {
      "type": "number",
      "minimum": 0,
      "description": "Charge magnitude in elementary-charge units or coulombs"
    },
    "charge_unit": {
      "type": "string",
      "enum": [
        "elementary_charge",
        "coulomb",
        "e",
        "C"
      ],
      "description": "Used with direction when mode is omitted"
    },
    "charge_convention": {
      "type": "string",
      "enum": [
        "magnitude"
      ],
      "description": "Only magnitude is supported"
    },
    "a": {
      "type": "number",
      "description": "Legacy: energy_eV or voltage_V depending on mode"
    },
    "b": {
      "type": "number",
      "minimum": 0,
      "description": "Legacy alias for charge_value"
    },
    "Q": {
      "type": "number"
    }
  },
  "description": "Relate electronvolt energy to electric potential difference through E = qV using charge magnitude and the exact SI elementary charge. (calculation_version 1.3.0) Provide at least 2 of: a, energy_eV, voltage_V, b, charge_value, Q."
}
