|
16 | 16 | "description": "Detailed description of the grid tariff.", |
17 | 17 | "type": "string" |
18 | 18 | }, |
19 | | - "product": { |
20 | | - "description": "A persistent and unique (on company level) reference to identify a given product during its entire lifecycle. If set, the reference allows for a seamless transition when a products tariff definition gets updated.", |
21 | | - "type": "string", |
22 | | - "example": "net.consume.std.25" |
| 19 | + "validPeriod": { |
| 20 | + "$ref": "time.schema.json#/definitions/DateInterval" |
| 21 | + }, |
| 22 | + "timeZone": { |
| 23 | + "$ref": "time.schema.json#/definitions/TimeZone" |
| 24 | + }, |
| 25 | + "lastUpdated": { |
| 26 | + "$ref": "time.schema.json#/definitions/DateTime" |
23 | 27 | }, |
24 | 28 | "companyName": { |
25 | 29 | "description": "Name of the grid company.", |
|
29 | 33 | "description": "Organization number and unique identifier of the grid company.", |
30 | 34 | "type": "string" |
31 | 35 | }, |
| 36 | + "product": { |
| 37 | + "description": "A persistent and unique (on company level) reference to identify a given product during its entire lifecycle. If set, the reference allows for a seamless transition when a products tariff definition gets updated.", |
| 38 | + "type": "string", |
| 39 | + "example": "net.consume.std.25" |
| 40 | + }, |
32 | 41 | "direction": { |
33 | 42 | "description": "Indicates if this is a tariff for consumption or production. Valid values are \"consumption\" and \"production\".", |
34 | 43 | "type": "string", |
35 | 44 | "pattern": "consumption|production", |
36 | 45 | "default": "consumption" |
37 | 46 | }, |
38 | | - "timeZone": { |
39 | | - "$ref": "time.schema.json#/definitions/TimeZone" |
40 | | - }, |
41 | | - "lastUpdated": { |
42 | | - "$ref": "time.schema.json#/definitions/DateTime" |
43 | | - }, |
44 | | - "validPeriod": { |
45 | | - "$ref": "time.schema.json#/definitions/DateInterval" |
46 | | - }, |
47 | 47 | "billingPeriod": { |
48 | 48 | "$ref": "time.schema.json#/definitions/Duration" |
49 | 49 | }, |
|
57 | 57 | "$ref": "tariff.schema.json#/definitions/PowerPrice" |
58 | 58 | } |
59 | 59 | }, |
| 60 | + "required": [ |
| 61 | + "id", |
| 62 | + "name", |
| 63 | + "validPeriod", |
| 64 | + "timeZone", |
| 65 | + "lastUpdated", |
| 66 | + "companyName", |
| 67 | + "companyOrgNo", |
| 68 | + "product", |
| 69 | + "direction", |
| 70 | + "billingPeriod", |
| 71 | + "fixedPrice", |
| 72 | + "energyPrice", |
| 73 | + "powerPrice" |
| 74 | + ], |
60 | 75 | "additionalProperties": false |
61 | 76 | }, |
62 | 77 | "FixedPrice": { |
|
82 | 97 | } |
83 | 98 | } |
84 | 99 | }, |
| 100 | + "required": [ |
| 101 | + "id", |
| 102 | + "name", |
| 103 | + "costFunction", |
| 104 | + "components" |
| 105 | + ], |
85 | 106 | "additionalProperties": false |
86 | 107 | }, |
87 | 108 | "EnergyPrice": { |
|
110 | 131 | } |
111 | 132 | } |
112 | 133 | }, |
| 134 | + "required": [ |
| 135 | + "id", |
| 136 | + "name", |
| 137 | + "costFunction", |
| 138 | + "unit", |
| 139 | + "components" |
| 140 | + ], |
113 | 141 | "additionalProperties": false |
114 | 142 | }, |
115 | 143 | "PowerPrice": { |
|
138 | 166 | } |
139 | 167 | } |
140 | 168 | }, |
| 169 | + "required": [ |
| 170 | + "id", |
| 171 | + "name", |
| 172 | + "costFunction", |
| 173 | + "unit", |
| 174 | + "components" |
| 175 | + ], |
141 | 176 | "additionalProperties": false |
142 | 177 | } |
143 | 178 | } |
|
0 commit comments