You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[<Newtonsoft.Json.JsonConverter(typeof<TypeSafeEnumConverter>)>]
type Log = A | B
[<Newtonsoft.Json.JsonConverter(typeof<UnionConverter>, "rule", "Unknown")>] Input =
type DU of =
| CaseA of req: Log * res:Log
the following parses, yielding a Log value of null and NullReferenceException when you touch the res value
"{ "rule": "CaseA", "req": "A" }
this should instead provide a clear parser error
The text was updated successfully, but these errors were encountered:
Given:
the following parses, yielding a Log value of
null
andNullReferenceException
when you touch theres
valuethis should instead provide a clear parser error
The text was updated successfully, but these errors were encountered: