-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Text.Json.JsonException when dezerializing json to Unleash.Internal.ToggleCollection #173
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The id in Segment is defined as a string but unleash seems to return a json number. This causes a System.Text.Json.JsonException: The JSON value could not be converted to Unleash.Internal.Segment when using System.Text.Json for dezerialization. The bug is not noticable when using Newtonsoft.
unleash-client-dotnet version: 4.0.0
Segment.cs: https://github.com/Unleash/unleash-client-dotnet/blob/cccf3efe3cb2effd5580834efc864b1f0542160e/src/Unleash/Internal/Segment.cs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
instance should be Unleash.Internal.ToggleCollection after dezerialization.
Suggested fix
Change type of id in Segment.cs to int.
The text was updated successfully, but these errors were encountered: