Skip to content

Commit

Permalink
GrpcModels: fix in Match type deserialization
Browse files Browse the repository at this point in the history
Fix in Match type deserialization (Partial case).
  • Loading branch information
webwarrior-ws committed Sep 5, 2024
1 parent 3098386 commit b2f8838
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FX.GrpcModels/ModelSerialization.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ module ModelSerialization =
if reader.TokenType <> JsonTokenType.PropertyName || reader.GetString() <> "Amount" then
raise <| JsonException()
// "Amount" value
reader.Read() |> ignore
if reader.TokenType <> JsonTokenType.Number then
raise <| JsonException()
let amount = reader.GetDecimal()
reader.Read() |> ignore
if reader.TokenType <> JsonTokenType.EndObject then
Expand Down

0 comments on commit b2f8838

Please sign in to comment.