mirror of
https://github.com/logos-messaging/specs.git
synced 2026-02-17 12:43:08 +00:00
add SubscribeAction enum instead of bool sub/unsub field to error
This commit is contained in:
parent
6792b0113c
commit
75bcb711d5
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user