Thoth.Json icon indicating copy to clipboard operation
Thoth.Json copied to clipboard

vNext - DUs with a single Case but multiple arguments aren't encoded correctly

Open MangelMaxime opened this issue 5 years ago • 0 comments

type SeveralArgumentDus = SeveralArgs of int * {| Name : string; Age : int |}

let value = SeveralArgs (10, {| Name = "maxime"; Age = 28 |})
let json = Encode.Auto.toString(4, value)
printfn "%A" json // Print: 10

MangelMaxime avatar Oct 30 '20 19:10 MangelMaxime