Open MangelMaxime opened 5 years ago
Hmm, that should be made clear on the website what version of Thoth will work.
I tried a couple of samples in the fable repl before announcing this. There it didn't need Decode
.Decoder.
Does this mean the repl is already on V3? Should the tool already be looking at V3?
Yes, I think the REPL is already using the future v3 because paket.dependencies
use :
github alfonsogarciacaro/Thoth:auto-encode src/Thoth.Json/Types.fs
github alfonsogarciacaro/Thoth:auto-encode src/Thoth.Json/Decode.fs
github alfonsogarciacaro/Thoth:auto-encode src/Thoth.Json/Encode.fs
github alfonsogarciacaro/Thoth:auto-encode src/Thoth.Json/Extra.fs
Note the alfonsogarciacaro
as a repo. I wasn't aware that @alfonsogarciacaro used his fork as the source for the REPL.
With current version of Thoth.Json
v2
,static member Decoder : Decoder<Root> =
is invalid it should bestatic member Decoder : Decode.Decoder<Root> =
However, v3 of Thoth.Json will ask for
static member Decoder : Decoder<Root> =
. The changes of the API is needed to support more features and make the Auto decoders easier to use and more powerful.