openHAB REST API: swagger.json Fehler
Verfasst: 24. Nov 2018 17:08
Hey,
ich bin neu hier im Forum und habe eine Frage zur Rest API von openhab. Ich möchte gerne openhab mit einer Software steuern, die die swagger-Datei der API benötigt. Diese erhalte ich über den folgenden Aufruf: http://openhabianpi:8080/rest/swagger.json
Meine Software gibt mir jedoch einen Fehler aus. Um die swagger-Datei zu überprüfen, habe ich diese im swagger-Editor (http://editor.swagger.io/) geöffnet, dort werden mir ebenfalls dieselben Fehler angezeigt:
Weiß jemand, wie ich die Fehler beheben kann?
MfG
maxberlin
ich bin neu hier im Forum und habe eine Frage zur Rest API von openhab. Ich möchte gerne openhab mit einer Software steuern, die die swagger-Datei der API benötigt. Diese erhalte ich über den folgenden Aufruf: http://openhabianpi:8080/rest/swagger.json
Meine Software gibt mir jedoch einen Fehler aus. Um die swagger-Datei zu überprüfen, habe ich diese im swagger-Editor (http://editor.swagger.io/) geöffnet, dort werden mir ebenfalls dieselben Fehler angezeigt:
Code: Alles auswählen
Schema error at info
should have required property 'version'
missingProperty: version
Jump to line 2
Semantic error at paths./channel-types.get.operationId
Operations must have unique operationIds.
Jump to line 119
Semantic error at paths./config-descriptions.get.operationId
Operations must have unique operationIds.
Jump to line 196
Semantic error at paths./iconsets.get.operationId
Operations must have unique operationIds.
Jump to line 457
Semantic error at paths./inbox.get.operationId
Operations must have unique operationIds.
Jump to line 474
Semantic error at paths./links.get.operationId
Operations must have unique operationIds.
Jump to line 983
Semantic error at paths./services.get.operationId
Operations must have unique operationIds.
Jump to line 1243
Semantic error at paths./services/{serviceId}.get.operationId
Operations must have unique operationIds.
Jump to line 1260
Semantic error at paths./services/{serviceId}/config.get.operationId
Operations must have unique operationIds.
Jump to line 1282
Semantic error at paths./services/{serviceId}/config.put.operationId
Operations must have unique operationIds.
Jump to line 1303
Semantic error at paths./thing-types.get.operationId
Operations must have unique operationIds.
Jump to line 1512
Semantic error at paths./thing-types/{thingTypeUID}.get.operationId
Operations must have unique operationIds.
Jump to line 1535
Semantic error at paths./things.get.operationId
Operations must have unique operationIds.
Jump to line 1562
Semantic error at paths./things/{thingUID}.get.operationId
Operations must have unique operationIds.
Jump to line 1614
Semantic error at paths./things/{thingUID}/config.put.operationId
Operations must have unique operationIds.
Jump to line 1707
Semantic error at paths./voice/interpreters/{id}.post.operationId
Operations must have unique operationIds.
Jump to line 1957
MfG
maxberlin