{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/units.digital.binary_hex.input.json",
  "title": "Binary ↔ Hexadecimal — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "bin-hex",
        "hex-bin"
      ]
    },
    "value": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "value"
  ],
  "description": "Integer base-2 ↔ base-16 conversion (optional 0b/0x prefixes). (calculation_version 1.0.0)"
}
