Fix push button auth finished notification API documentation

pull/135/head
Simon Stürz 2019-02-19 16:12:14 +01:00 committed by Michael Zanetti
parent 8991e01526
commit a44b82c497
3 changed files with 3 additions and 3 deletions

View File

@ -208,7 +208,7 @@ JsonRPCServer::JsonRPCServer(const QSslConfiguration &sslConfiguration, QObject
params.clear();
setDescription("PushButtonAuthFinished", "Emitted when a push button authentication reaches final state. NOTE: This notification is special. It will only be emitted to connections that did actively request a push button authentication, but also it will be emitted regardless of the notification settings. ");
params.insert("status", JsonTypes::userErrorRef());
params.insert("success", JsonTypes::basicTypeToString(JsonTypes::Bool));
params.insert("transactionId", JsonTypes::basicTypeToString(JsonTypes::Int));
params.insert("o:token", JsonTypes::basicTypeToString(JsonTypes::String));
setParams("PushButtonAuthFinished", params);

View File

@ -6,7 +6,7 @@ NYMEA_PLUGINS_PATH=/usr/lib/$$system('dpkg-architecture -q DEB_HOST_MULTIARCH')/
# define protocol versions
JSON_PROTOCOL_VERSION_MAJOR=1
JSON_PROTOCOL_VERSION_MINOR=12
JSON_PROTOCOL_VERSION_MINOR=13
REST_API_VERSION=1
DEFINES += NYMEA_VERSION_STRING=\\\"$${NYMEA_VERSION_STRING}\\\" \

View File

@ -1030,7 +1030,7 @@
"description": "Emitted when a push button authentication reaches final state. NOTE: This notification is special. It will only be emitted to connections that did actively request a push button authentication, but also it will be emitted regardless of the notification settings. ",
"params": {
"o:token": "String",
"status": "$ref:UserError",
"success": "Bool",
"transactionId": "Int"
}
},