From 844809091820401f0ffed8fcea01c244d53fa580 Mon Sep 17 00:00:00 2001 From: Nikolay Matyushin Date: Tue, 20 Feb 2024 13:09:11 +0400 Subject: [PATCH] Add comment --- src/Funogram/Converters.fs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Funogram/Converters.fs b/src/Funogram/Converters.fs index ee52a9d..0ce3ee3 100644 --- a/src/Funogram/Converters.fs +++ b/src/Funogram/Converters.fs @@ -84,7 +84,7 @@ module internal Converters = | _ -> failwith "Unsupported type" let enumUnion = union.UnionCases |> Seq.forall (fun x -> x.Fields.Length = 0) - + let cases = union.UnionCases |> Seq.map (fun c -> @@ -245,6 +245,8 @@ module internal Converters = | None -> writer.WriteNullValue() + // The FSharpOptionTypeConverter in STJ seems to be broken + // There is no stable repro to check this, so I used my own Option converter type OptionConverterFactory() = inherit JsonConverterFactory()