Domain info: owners are represented as integers.

display
Karchnu 2024-04-27 19:04:39 +02:00
parent 9346e81861
commit 96f82adf6b
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ type DomainInfo
= { name :: String = { name :: String
, share_key :: Maybe String , share_key :: Maybe String
, transfer_key :: Maybe String , transfer_key :: Maybe String
, owners :: Array String , owners :: Array Int
} }
codec :: JsonCodec DomainInfo codec :: JsonCodec DomainInfo
@ -21,7 +21,7 @@ codec = CA.object "DomainInfo"
{ name: CA.string { name: CA.string
, share_key: CAR.optional CA.string , share_key: CAR.optional CA.string
, transfer_key: CAR.optional CA.string , transfer_key: CAR.optional CA.string
, owners: CA.array CA.string , owners: CA.array CA.int
}) })
emptyDomainInfo :: DomainInfo emptyDomainInfo :: DomainInfo