fix: specify behavior of the encoder for `TokenType` enums
This commit is contained in:
parent
d6d405f8b3
commit
72ca466957
|
@ -1,3 +1,5 @@
|
|||
import "json_serialization"
|
||||
|
||||
type
|
||||
ContentType* {.pure.} = enum
|
||||
NewMessagesMarker = -3
|
||||
|
@ -92,6 +94,8 @@ type TokenType* {.pure.} = enum
|
|||
Unknown = 4,
|
||||
ENS = 5
|
||||
|
||||
TokenType.configureJsonSerialization(EnumAsNumber)
|
||||
|
||||
type RequestToJoinState* {.pure.} = enum
|
||||
None = 0
|
||||
InProgress
|
||||
|
|
Loading…
Reference in New Issue