diff --git a/libnymea-core/ruleengine/rule.h b/libnymea-core/ruleengine/rule.h index ef510d53..b09a60f7 100644 --- a/libnymea-core/ruleengine/rule.h +++ b/libnymea-core/ruleengine/rule.h @@ -44,9 +44,9 @@ namespace nymeaserver { class Rule { Q_GADGET - Q_PROPERTY(QUuid id READ id WRITE setId USER true) + Q_PROPERTY(QUuid id READ id) Q_PROPERTY(QString name READ name WRITE setName) - Q_PROPERTY(bool active READ active USER true) + Q_PROPERTY(bool active READ active) Q_PROPERTY(bool enabled READ enabled WRITE setEnabled USER true) Q_PROPERTY(bool executable READ executable WRITE setExecutable USER true) Q_PROPERTY(EventDescriptors eventDescriptors READ eventDescriptors WRITE setEventDescriptors USER true) diff --git a/tests/auto/api.json b/tests/auto/api.json index 2fa78ed2..ecc548f3 100644 --- a/tests/auto/api.json +++ b/tests/auto/api.json @@ -2031,10 +2031,10 @@ "o:eventDescriptors": "$ref:EventDescriptors", "o:executable": "Bool", "o:exitActions": "$ref:RuleActions", - "o:id": "Uuid", "o:stateEvaluator": "$ref:StateEvaluator", "o:timeDescriptor": "$ref:TimeDescriptor", - "r:o:active": "Bool" + "r:active": "Bool", + "r:id": "Uuid" }, "RuleAction": { "o:actionTypeId": "Uuid",