{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/chemistry.acid_base.ph/1.0.0/input.json",
  "title": "pH — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "ph_from_h",
        "h_from_ph",
        "poh_from_oh",
        "oh_from_poh",
        "ph_from_poh",
        "poh_from_ph"
      ],
      "description": "ph_from_h (default), h_from_ph, poh_from_oh, oh_from_poh, ph_from_poh, or poh_from_ph."
    },
    "h": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "[H+] in mol/L. Required for ph_from_h. REST/MCP alias. Share uses h_mol_L."
    },
    "pH": {
      "type": "number",
      "description": "pH. Required for h_from_ph and poh_from_ph."
    },
    "oh": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "[OH−] in mol/L. Required for poh_from_oh. Share uses oh_mol_L."
    },
    "pOH": {
      "type": "number",
      "description": "pOH. Required for oh_from_poh and ph_from_poh."
    }
  },
  "description": "Water-ion pH and pOH identities at 25 °C: pH = −log10[H+], pOH = −log10[OH−], pH + pOH = 14. Not Henderson–Hasselbalch and not ICE. (calculation_version 1.0.0)"
}
