107 lines
2.2 KiB
JSON
107 lines
2.2 KiB
JSON
|
|
{
|
||
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"kind": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"LOAD",
|
||
|
|
"PV",
|
||
|
|
"PRICE"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"market_date": {
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
||
|
|
},
|
||
|
|
"unit": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"mw",
|
||
|
|
"yuan_per_mwh"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"history": {
|
||
|
|
"minItems": 1,
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"interval_minutes": {
|
||
|
|
"type": "number",
|
||
|
|
"const": 15
|
||
|
|
},
|
||
|
|
"date": {
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
||
|
|
},
|
||
|
|
"values": {
|
||
|
|
"minItems": 96,
|
||
|
|
"maxItems": 96,
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^-?\\d+(\\.\\d+)?$"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"interval_minutes",
|
||
|
|
"date",
|
||
|
|
"values"
|
||
|
|
],
|
||
|
|
"additionalProperties": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"exogenous": {
|
||
|
|
"type": "object",
|
||
|
|
"propertyNames": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"additionalProperties": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"interval_minutes": {
|
||
|
|
"type": "number",
|
||
|
|
"const": 15
|
||
|
|
},
|
||
|
|
"date": {
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
||
|
|
},
|
||
|
|
"values": {
|
||
|
|
"minItems": 96,
|
||
|
|
"maxItems": 96,
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^-?\\d+(\\.\\d+)?$"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"interval_minutes",
|
||
|
|
"date",
|
||
|
|
"values"
|
||
|
|
],
|
||
|
|
"additionalProperties": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"features_snapshot_ref": {
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^[0-9a-f]{64}$"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"kind",
|
||
|
|
"market_date",
|
||
|
|
"unit",
|
||
|
|
"history",
|
||
|
|
"exogenous",
|
||
|
|
"features_snapshot_ref"
|
||
|
|
],
|
||
|
|
"additionalProperties": false,
|
||
|
|
"$id": "https://vpp-ai-platform/contracts/forecast_request.json",
|
||
|
|
"title": "ForecastRequest"
|
||
|
|
}
|