-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core: use FSharp.SystemTextJson library
Use FSharp.SystemTextJson library so that all F# types, including discriminated unions, can be serialized using System.Text.Json. Without it, tests would fail with error: ``` System.NotSupportedException : F# discriminated union serialization is not supported. Consider authoring a custom converter for the type. The unsupported member type is located on type 'FsharpExchangeDotNetStandard.Currency'. Path: $.Market.BuyCurrency. ``` And after adding converters for `Currency` and `Side` types, tests would fail at [1], indicating that something is wrong with serialization. [1] https://github.com/nblockchain/FX/blob/33ce6fa6d133bf3a685053798cad6a41712514e7/src/FX.Tests/RedisIntegrationTests.cs#L62
- Loading branch information
1 parent
343abd5
commit a14f75f
Showing
3 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters