{
  "type": "object",
  "properties": {
    "referenceTime": {
      "type": "string"
    },
    "id": {
      "type": "number"
    },
    "safeName": {
      "type": "string"
    },
    "loadConf": {
      "type": "object",
      "properties": {
        "type": {
          "const": "Time",
          "type": "string"
        },
        "lead": {
          "type": "number"
        },
        "lag": {
          "type": "number"
        },
        "leadUnit": {
          "$ref": "#/definitions/DweenTimeUnit"
        },
        "lagUnit": {
          "$ref": "#/definitions/DweenTimeUnit"
        },
        "alignUnit": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        }
      },
      "required": [
        "alignUnit",
        "lag",
        "lagUnit",
        "leadUnit"
      ]
    },
    "nameColumn": {
      "type": "string"
    },
    "timeColumn": {
      "type": "string"
    },
    "valueColumn": {
      "type": "string"
    },
    "valueUnit": {
      "type": "string"
    },
    "xAxisTitle": {
      "type": "string"
    },
    "aggregationType": {
      "type": "string"
    },
    "height": {
      "type": "number"
    },
    "width": {
      "type": "number"
    },
    "filter": {
      "type": "string"
    },
    "decimalPlaces": {
      "type": "number"
    },
    "hideLegend": {
      "type": "boolean"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "instantFrom": {
      "$ref": "#/definitions/JSJoda.Instant"
    },
    "instantTo": {
      "$ref": "#/definitions/JSJoda.Instant"
    }
  },
  "required": [
    "aggregationType",
    "id",
    "loadConf",
    "nameColumn",
    "referenceTime",
    "safeName",
    "timeColumn",
    "valueColumn",
    "valueUnit",
    "xAxisTitle"
  ],
  "definitions": {
    "DweenTimeUnit": {
      "enum": [
        "DAYS",
        "HALFHOUR",
        "HOURS",
        "MILLIS",
        "MINUTES",
        "MONTHS",
        "SECONDS",
        "WEEKS",
        "YEARS"
      ],
      "type": "string"
    },
    "JSJoda.Instant": {
      "type": "object"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}