{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/eliq/main/json-schema/eliq-peak-power-response-schema.json",
  "title": "PeakPowerResponse",
  "description": "Peak power response model",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eliq-energy-data-api-openapi.yml#/components/schemas/PeakPowerResponse",
  "required": [
    "direction",
    "from",
    "fuel",
    "peak_power_resolution",
    "peak_power_timestamp",
    "power",
    "resolution",
    "to"
  ],
  "type": "object",
  "properties": {
    "power": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "double"
      },
      "description": "List of power values"
    },
    "peak_power_timestamp": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "date-time"
      },
      "description": "List of timestamps indicating when the peak power was recorded"
    },
    "from": {
      "type": "string",
      "description": "From date",
      "format": "date-time"
    },
    "to": {
      "type": "string",
      "description": "To date, exclusive",
      "format": "date-time"
    },
    "fuel": {
      "enum": [
        "elec",
        "gas",
        "district_heating"
      ],
      "type": "string",
      "description": "Fuel type"
    },
    "direction": {
      "enum": [
        "import",
        "export",
        "consumption",
        "production"
      ],
      "type": "string",
      "description": "Direction type"
    },
    "resolution": {
      "enum": [
        "hour",
        "day",
        "month"
      ],
      "type": "string",
      "description": "Peak power data resolution"
    },
    "peak_power_resolution": {
      "enum": [
        "6min",
        "10min",
        "15min",
        "30min",
        "hour"
      ],
      "type": "string",
      "description": "Resolution of peak power values"
    },
    "consumption": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "number",
        "format": "double"
      },
      "description": "List of consumption values",
      "deprecated": true
    },
    "production": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "number",
        "format": "double"
      },
      "description": "List of production values",
      "deprecated": true
    },
    "import": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "number",
        "format": "double"
      },
      "description": "List of import values",
      "deprecated": true
    },
    "export": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "number",
        "format": "double"
      },
      "description": "List of export values",
      "deprecated": true
    }
  }
}