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
Yes, I have, but I have different parts of APIs that are expecting different types of data:
one part of my API is public, the other part is exposed to F# client sending Thoth.Json compliant data, so I need two sets of JsonSerializerOptions
[<Extension>]static memberBindJson2<'T>(ctx:HttpContext)=task{tryreturn! My.anotherSerializer.Deserialize<'T>(ctx)with ex ->return raise <| ModelBindException("Unable to deserialize model from JSON", ex)}
so given this is easy achievable I'm reluctant to extend API for this case
It would be nice if context.BindJson would allow passing custom
JsonSerializerOptions
.The text was updated successfully, but these errors were encountered: