Skip to content

Commit 093bd4a

Browse files
authored
Upgrade to @hey-api/openapi-ts 0.95.0 & Update OpenAPI spec (#4093)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent 47cd646 commit 093bd4a

12 files changed

Lines changed: 239 additions & 72 deletions

File tree

bundles/org.openhab.ui/web/build/openhab-api-spec.json

Lines changed: 132 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@
22352235
"schema": {
22362236
"type": "array",
22372237
"items": {
2238-
"$ref": "#/components/schemas/ConfigDescription"
2238+
"$ref": "#/components/schemas/EnrichedConfigDescription"
22392239
}
22402240
}
22412241
}
@@ -2283,7 +2283,7 @@
22832283
"content": {
22842284
"application/json": {
22852285
"schema": {
2286-
"$ref": "#/components/schemas/ConfigDescription"
2286+
"$ref": "#/components/schemas/EnrichedConfigDescription"
22872287
}
22882288
}
22892289
}
@@ -8156,14 +8156,14 @@
81568156
"description": {
81578157
"type": "string"
81588158
},
8159-
"configuration": {
8160-
"$ref": "#/components/schemas/Configuration"
8161-
},
81628159
"label": {
81638160
"type": "string"
81648161
},
81658162
"id": {
81668163
"type": "string"
8164+
},
8165+
"configuration": {
8166+
"$ref": "#/components/schemas/Configuration"
81678167
}
81688168
}
81698169
},
@@ -8193,13 +8193,6 @@
81938193
"Template": {
81948194
"type": "object",
81958195
"properties": {
8196-
"tags": {
8197-
"uniqueItems": true,
8198-
"type": "array",
8199-
"items": {
8200-
"type": "string"
8201-
}
8202-
},
82038196
"uid": {
82048197
"type": "string"
82058198
},
@@ -8211,6 +8204,13 @@
82118204
"EXPERT"
82128205
]
82138206
},
8207+
"tags": {
8208+
"uniqueItems": true,
8209+
"type": "array",
8210+
"items": {
8211+
"type": "string"
8212+
}
8213+
},
82148214
"description": {
82158215
"type": "string"
82168216
},
@@ -8673,7 +8673,7 @@
86738673
}
86748674
}
86758675
},
8676-
"ConfigDescription": {
8676+
"EnrichedConfigDescription": {
86778677
"required": [
86788678
"parameterGroups",
86798679
"parameters"
@@ -8686,7 +8686,7 @@
86868686
"parameters": {
86878687
"type": "array",
86888688
"items": {
8689-
"$ref": "#/components/schemas/ConfigDescriptionParameter"
8689+
"$ref": "#/components/schemas/EnrichedConfigDescriptionParameter"
86908690
}
86918691
},
86928692
"parameterGroups": {
@@ -8697,6 +8697,100 @@
86978697
}
86988698
}
86998699
},
8700+
"EnrichedConfigDescriptionParameter": {
8701+
"required": [
8702+
"name",
8703+
"type"
8704+
],
8705+
"type": "object",
8706+
"properties": {
8707+
"context": {
8708+
"type": "string"
8709+
},
8710+
"default": {
8711+
"type": "string"
8712+
},
8713+
"description": {
8714+
"type": "string"
8715+
},
8716+
"label": {
8717+
"type": "string"
8718+
},
8719+
"name": {
8720+
"type": "string"
8721+
},
8722+
"required": {
8723+
"type": "boolean"
8724+
},
8725+
"type": {
8726+
"type": "string",
8727+
"enum": [
8728+
"TEXT",
8729+
"INTEGER",
8730+
"DECIMAL",
8731+
"BOOLEAN"
8732+
]
8733+
},
8734+
"min": {
8735+
"type": "number"
8736+
},
8737+
"max": {
8738+
"type": "number"
8739+
},
8740+
"step": {
8741+
"type": "number"
8742+
},
8743+
"pattern": {
8744+
"type": "string"
8745+
},
8746+
"readOnly": {
8747+
"type": "boolean"
8748+
},
8749+
"multiple": {
8750+
"type": "boolean"
8751+
},
8752+
"multipleLimit": {
8753+
"type": "integer",
8754+
"format": "int32"
8755+
},
8756+
"groupName": {
8757+
"type": "string"
8758+
},
8759+
"advanced": {
8760+
"type": "boolean"
8761+
},
8762+
"verify": {
8763+
"type": "boolean"
8764+
},
8765+
"limitToOptions": {
8766+
"type": "boolean"
8767+
},
8768+
"unit": {
8769+
"type": "string"
8770+
},
8771+
"unitLabel": {
8772+
"type": "string"
8773+
},
8774+
"options": {
8775+
"type": "array",
8776+
"items": {
8777+
"$ref": "#/components/schemas/ParameterOption"
8778+
}
8779+
},
8780+
"filterCriteria": {
8781+
"type": "array",
8782+
"items": {
8783+
"$ref": "#/components/schemas/FilterCriteria"
8784+
}
8785+
},
8786+
"defaultValues": {
8787+
"type": "array",
8788+
"items": {
8789+
"type": "string"
8790+
}
8791+
}
8792+
}
8793+
},
87008794
"DiscoveryInfo": {
87018795
"required": [
87028796
"inputSupported"
@@ -10383,6 +10477,30 @@
1038310477
}
1038410478
}
1038510479
},
10480+
"ConfigDescription": {
10481+
"required": [
10482+
"parameterGroups",
10483+
"parameters"
10484+
],
10485+
"type": "object",
10486+
"properties": {
10487+
"uri": {
10488+
"type": "string"
10489+
},
10490+
"parameters": {
10491+
"type": "array",
10492+
"items": {
10493+
"$ref": "#/components/schemas/ConfigDescriptionParameter"
10494+
}
10495+
},
10496+
"parameterGroups": {
10497+
"type": "array",
10498+
"items": {
10499+
"$ref": "#/components/schemas/ConfigDescriptionParameterGroup"
10500+
}
10501+
}
10502+
}
10503+
},
1038610504
"RootUIComponent": {
1038710505
"type": "object",
1038810506
"properties": {

bundles/org.openhab.ui/web/package-lock.json

Lines changed: 49 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)