edgedb / edgedb-net

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

Fix object codecs being reused based on shape #48

Closed quinchs closed 1 year ago

quinchs commented 1 year ago

Summary

This PR fixes object codecs being reused when the shape matches, regardless of the user supplied type.

Changes

Object codecs now strictly deserialize to dynamic, unless concrete type information is supplied. When type information is available, the object codec will create a child codec key'd by the type, inheriting the shape information.

Fixes #47