edgedb / edgedb-net

The official .NET client library for EdgeDB
https://edgedb.com
Apache License 2.0
82 stars 9 forks source link

Fix anonymous type deserialization #56

Closed quinchs closed 1 year ago

quinchs commented 1 year ago

Summary

This PR fixes an issue where anonymous types would fail the IsValidType check for the deserialization pipeline, causing a NoTypeConverterException to be thrown.

The binding would attempt to search for a valid constructor for the anonymous type: if the type has only one property then it would assume a custom deserializer was being used, and would fail when it didn't find it.