You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 1:
When using a custom CosmosLinqSerializer, if an object contains an enumeration property that does have the [JsonConverter(typeof(JsonStringEnumConverter))] attribute, the serializer will stringify the enum properly, but fail to retrieve the document when doing a linq query (GetItemLinqQueryable) on said property.
Bug 2: (not sure if this one is a bug or just the way the cosmos db sdk works normally)
When not using a custom serializer, the [JsonConverter(typeof(JsonStringEnumConverter))] attribute is ignored.
sorry for the number of files, but I was making sure my polymorphism was working at the same time.
Expected behavior
Bug 1:
Expect the GetItemLinqQueryable to retrieve the document
Bug 2:
That when no custom serializer are provided, actually respect the attribute?
Actual behavior
The document is not retrieved
Environment summary
SDK Version: 3.44 and 3.45
OS Version: Windows
IDE: Visual Studio 2022 preview 5
Additional context
Weirdly enough:
if [JsonConverter(typeof(JsonStringEnumConverter))] is set on the enum itself instead of the property of the complex object, the custom CosmosLinqSerializer works as intended without the need to add the JsonStringEnumConverter.
Adding the JsonStringEnumConverter to the list of converters make everything work too.
The text was updated successfully, but these errors were encountered:
Describe the bug
Bug 1:
When using a custom CosmosLinqSerializer, if an object contains an enumeration property that does have the [JsonConverter(typeof(JsonStringEnumConverter))] attribute, the serializer will stringify the enum properly, but fail to retrieve the document when doing a linq query (GetItemLinqQueryable) on said property.
Bug 2: (not sure if this one is a bug or just the way the cosmos db sdk works normally)
When not using a custom serializer, the [JsonConverter(typeof(JsonStringEnumConverter))] attribute is ignored.
To Reproduce
See code sample:
CosmosDBSDKTests.zip
sorry for the number of files, but I was making sure my polymorphism was working at the same time.
Expected behavior
Bug 1:
Expect the GetItemLinqQueryable to retrieve the document
Bug 2:
That when no custom serializer are provided, actually respect the attribute?
Actual behavior
The document is not retrieved
Environment summary
SDK Version: 3.44 and 3.45
OS Version: Windows
IDE: Visual Studio 2022 preview 5
Additional context
Weirdly enough:
The text was updated successfully, but these errors were encountered: