Description
The JsonValue.fs deserializer deserializes 0 into int while it must deserialize it into the type requested by the schema. Which is float in my case.
We can simply use System.Text.Json package version 5 as it is done in https://github.com/fsprojects/SwaggerProvider/tree/net5 with https://github.com/Tarmil/FSharp.SystemTextJson/
Repro steps
- Define
Float field in GraphQL and return 0.0 from it
- Use System.Text.Json as a serializer
- You will get
int option
Expected behavior
Value is deserialized into the type defined by the schema
Actual behavior
Value is deserialized into the type chosen by JsonValue.fs logic
Related information
1.0.7