From 75bcb711d55411b10eba7c4d4497baffef923afb Mon Sep 17 00:00:00 2001 From: Fabiana Cecin Date: Tue, 3 Feb 2026 16:09:48 -0300 Subject: [PATCH] add SubscribeAction enum instead of bool sub/unsub field to error --- standards/application/waku-api.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/standards/application/waku-api.md b/standards/application/waku-api.md index 3033d42..6e9c32e 100644 --- a/standards/application/waku-api.md +++ b/standards/application/waku-api.md @@ -456,6 +456,11 @@ The node uses [P2P-RELIABILITY](/standards/application/p2p-reliability.md) strat ```yaml types: + SubscribeAction: + type: enum + values: [Subscribe, Unsubscribe] + description: "Defines the subscription action that was performed" + SubscriptionErrorEvent: type: object description: "Event emitted when a content topic subscription-related operation fails" @@ -463,9 +468,9 @@ types: content-topic: type: string description: "Content topic that the node failed to subscribe to or unsubscribe from" - subscribe: - type: bool - description: "True if failed to subscribe, false if failed to unsubscribe instead" + action: + type: SubscribeAction + description: "Defines the subscription action that was attempted" error: type: string description: "Error message describing what went wrong"