{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.resistor_color_code/1.0.0/input.json",
  "title": "Resistor Color Code Calculator — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "bands": {
      "type": "integer",
      "enum": [
        3,
        4,
        5,
        6
      ]
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 3
    }
  },
  "required": [
    "bands",
    "colors"
  ],
  "description": "IEC 60062 3–6 band decode to ohms, tolerance, TCR. (calculation_version 1.0.0)"
}
