{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.digital.logic_gate/1.0.0/input.json",
  "title": "Logic Gate — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "and",
        "or",
        "not",
        "nand",
        "nor",
        "xor",
        "xnor"
      ]
    },
    "A": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1
    },
    "B": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1
    }
  },
  "required": [
    "A"
  ],
  "description": "Basic Boolean gate outputs from binary inputs. (calculation_version 1.0.0)"
}
