{
  "$ref": "#/definitions/Component",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "CardNavigator": {
      "additionalProperties": false,
      "properties": {
        "icon": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "rows": {
          "items": {
            "$ref": "#/definitions/CardRow"
          },
          "type": "array"
        },
        "sort": {
          "type": "number"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "rows"
      ],
      "type": "object"
    },
    "CardRow": {
      "additionalProperties": false,
      "properties": {
        "badge": {
          "additionalProperties": false,
          "properties": {
            "class": {
              "type": "string"
            },
            "classcolor": {
              "type": "string"
            },
            "text": {
              "type": "string"
            }
          },
          "required": [
            "text"
          ],
          "type": "object"
        },
        "bootstrapIcon": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "selected": {
          "type": "boolean"
        },
        "subtext": {
          "type": "string"
        },
        "switchToPanelId": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "type": {
          "enum": [
            "switch",
            "range",
            "radio",
            "checkbox",
            "button"
          ],
          "type": "string"
        },
        "value": {
          "type": [
            "string",
            "number",
            "boolean"
          ]
        }
      },
      "required": [
        "key",
        "text"
      ],
      "type": "object"
    },
    "Component": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "panels": {
          "items": {
            "$ref": "#/definitions/Panel"
          },
          "type": "array"
        },
        "style": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Panel": {
      "additionalProperties": false,
      "properties": {
        "cards": {
          "items": {
            "$ref": "#/definitions/CardNavigator"
          },
          "type": "array"
        },
        "icon": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "main": {
          "type": "boolean"
        },
        "parentPanelId": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "cards",
        "id"
      ],
      "type": "object"
    }
  }
}
