{
  "$ref": "#/definitions/Component",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "Component": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "options": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/GaugeOptions"
            }
          ],
          "description": "JSON string from HTML, or an object when set from JavaScript."
        },
        "style": {
          "type": "string"
        }
      },
      "required": [
        "options"
      ],
      "type": "object"
    },
    "GaugeOptions": {
      "description": "JustGage constructor options merged with `{ element }` in the component.",
      "properties": {
        "max": {
          "type": "number"
        },
        "min": {
          "type": "number"
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "max",
        "min",
        "value"
      ],
      "type": "object"
    }
  }
}
