fix CS jsont

This commit is contained in:
swrup 2025-11-30 23:45:28 +01:00
parent 81bbd1ce2b
commit b2121dda1c

View file

@ -105,7 +105,7 @@ module DenominationKey = struct
let jsont =
let open Jsont.Object in
let rsa = Case.map "RSA" RsaDenominationKey.jsont ~dec:of_rsa in
let cs = Case.map "CS" Jsont.string ~dec:of_cs in
let cs = Case.map "CS" RsaDenominationKey.jsont ~dec:of_cs in
let enc_case = function Rsa v -> Case.value rsa v in
let cases = Case.[ make rsa; make cs ] in
map ~kind:"DenominationKey" Fun.id