Surreal-Net / Surreal.Net

Database driver for SurrealDB available for REST and RPC sessions.
Apache License 2.0
57 stars 7 forks source link

Bug: JsonPropertyName with key serializer #10

Closed ProphetLamb closed 2 years ago

ProphetLamb commented 2 years ago

The custom key serializer seems to overwrite the property name defined via the JsonPropertyNameAttribute. This claim need to be verified, if true the key and dictionary key serializer should be left on their respective default values for JsonSerializerOptions to circumvent the issue. Rare instances, where the custom behaviour is used should be handled by JsonPropertyNameAttribute instead.

ProphetLamb commented 2 years ago

Fixed with #11