{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.opamp_gain.input.json",
  "title": "Op-amp gain — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "noninverting",
        "inverting"
      ]
    },
    "Rf_ohm": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "Rg_ohm": {
      "type": "number",
      "exclusiveMinimum": 0
    }
  },
  "required": [
    "Rf_ohm",
    "Rg_ohm"
  ],
  "description": "Closed-loop non-inverting / inverting gain from Rf and Rg. (calculation_version 1.0.0)"
}
