{
  "type": "object",
  "properties": {
    "datasets": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/IDataSetConfig"
      }
    },
    "config": {
      "$ref": "#/definitions/IDataConfigLocal"
    },
    "hideHeader": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "reportOptions": {
      "$ref": "#/definitions/ReportOptions"
    },
    "reportMode": {
      "type": "boolean"
    },
    "stateCb": {
      "type": "object"
    },
    "calendarType": {
      "const": "CALENDAR_445",
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "referenceTime": {
      "type": "string"
    },
    "instantFrom": {
      "$ref": "#/definitions/JSJoda.Instant"
    },
    "instantTo": {
      "$ref": "#/definitions/JSJoda.Instant"
    },
    "instantReferenceTime": {
      "$ref": "#/definitions/JSJoda.Instant"
    }
  },
  "required": [
    "datasets"
  ],
  "definitions": {
    "IDataSetConfig": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "decimalPlaces": {
          "type": "number"
        },
        "overriddenTitle": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "toggle": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "enum": {},
        "editable": {
          "type": "boolean"
        },
        "valueRange": {
          "type": "array",
          "items": {
            "type": "number"
          }
        }
      },
      "required": [
        "identifier"
      ]
    },
    "IDataConfigLocal": {
      "type": "object",
      "properties": {
        "alignStartTo": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "timeOffset": {
          "type": "number"
        },
        "timeOffsetUnits": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "dataFrequency": {
          "type": "string"
        },
        "updateFrequency": {
          "type": "number"
        },
        "maxHeight": {
          "type": "number"
        },
        "displayNote": {
          "type": "boolean"
        },
        "note": {
          "type": "string"
        },
        "hideUpdateButton": {
          "type": "boolean"
        }
      }
    },
    "ReportOptions": {
      "type": "object",
      "properties": {
        "fontSize": {
          "type": "string"
        }
      }
    },
    "JSJoda.Instant": {
      "type": "object"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}