{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:open-utility-stack:flex-prognosis:1",
  "title": "flex-prognosis@1",
  "description": "An aggregator's D-Prognosis: the power it expects at one congestion point for one day, per ISP, before any order. The baseline a `dprognosis@1` settlement measures against. A profile of UFTP 3.1's D-Prognosis message.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "profile",
    "market",
    "revision",
    "isps"
  ],
  "properties": {
    "profile": {
      "const": "flex-prognosis@1"
    },
    "market": {
      "$ref": "urn:open-utility-stack:common:flex:1#/$defs/Market"
    },
    "revision": {
      "description": "Counts up from 1 for each new prognosis of the same congestion point and day; the highest revision received before an order is the one a settlement uses.",
      "type": "integer",
      "minimum": 1
    },
    "isps": {
      "description": "The expected power per ISP, covering the whole day from ISP 1 without a gap: positive is consumption.",
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "urn:open-utility-stack:common:flex:1#/$defs/PowerIsp"
      }
    }
  }
}
