quinchs / EdgeDB.Net

C# edgedb client
Apache License 2.0
45 stars 3 forks source link

Range type doesn't deserialize properly with HTTP & JSON form #25

Closed quinchs closed 1 year ago

quinchs commented 1 year ago

Summary

The JSON representation of the Range type is an object form, theres no built in (de)serializer for the json representation of range. This issue is prominent with the Json type and the HTTP Client.

Solution

There should be a json contract resolver specifically for edgedb formatted json that the user and library has direct access to. This allows for any future types with their own json format to be easily added to the serialize/deserialize step of the json and http client.