{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Sane-Scanner",
  "description": "Sane Scanner options",
  "type": "object",
  "properties": {
    "host": {
      "description": "The host of the scanner",
      "type": "string"
    },
    "model": {
      "description": "The model of the scanner",
      "type": "string"
    },
    "name": {
      "description": "The name of the scanner",
      "type": "string"
    },
    "optionGroups": {
      "description": "The unique identifier for a product",
      "type": "array",
      "items": {
        "title": "optionGroup",
        "type": "object",
        "properties": {
          "options": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "properties": {
              "name": {
                "type": "string"
              },
              "range": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "units": {
                "type": "string"
              },
              "value": {
                "type": "number"
              }
            }
          },
          "title": {
            "type": "string"
          }
        }
      }
    },
    "type": {
      "description": "The type of the device, SANE can connect with some otrer peripherals besides scanners",
      "type": "string"
    },
    "vendor": {
      "description": "The vendor of the scanner",
      "type": "string"
    }
  },
  "required": [
    "host",
    "model",
    "name",
    "optionGroups",
    "vendor"
  ]
}