mirror of
https://github.com/logos-messaging/specs.git
synced 2026-05-05 20:49:30 +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
|
```yaml
|
||||||
types:
|
types:
|
||||||
|
|
||||||
|
SubscribeAction:
|
||||||
|
type: enum
|
||||||
|
values: [Subscribe, Unsubscribe]
|
||||||
|
description: "Defines the subscription action that was performed"
|
||||||
|
|
||||||
SubscriptionErrorEvent:
|
SubscriptionErrorEvent:
|
||||||
type: object
|
type: object
|
||||||
description: "Event emitted when a content topic subscription-related operation fails"
|
description: "Event emitted when a content topic subscription-related operation fails"
|
||||||
@ -463,9 +468,9 @@ types:
|
|||||||
content-topic:
|
content-topic:
|
||||||
type: string
|
type: string
|
||||||
description: "Content topic that the node failed to subscribe to or unsubscribe from"
|
description: "Content topic that the node failed to subscribe to or unsubscribe from"
|
||||||
subscribe:
|
action:
|
||||||
type: bool
|
type: SubscribeAction
|
||||||
description: "True if failed to subscribe, false if failed to unsubscribe instead"
|
description: "Defines the subscription action that was attempted"
|
||||||
error:
|
error:
|
||||||
type: string
|
type: string
|
||||||
description: "Error message describing what went wrong"
|
description: "Error message describing what went wrong"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user