Skip to content
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

uuid json converter supporting uuid as dictionary key #15

Merged
merged 4 commits into from
Aug 13, 2023

Conversation

bruzhmelev
Copy link
Contributor

@bruzhmelev bruzhmelev commented Apr 7, 2023

Проблема:
С текущей версией SystemTextJsonUuidJsonConverter нельзя использовать Uuid как ключ для Dictionary при сериализации и десериализации.

Решение взято отсюда:
dotnet/runtime#46520

Решение проверенно в сервисе Aggregators:
https://github.com/dodopizza/aggregators/blob/main/src/Dodo.Aggregators.Domain/Tools/Serialization/SystemTextJsonUuidJsonConverter.cs

@vanbukin vanbukin merged commit c78f9f3 into main Aug 13, 2023
2 checks passed
@vanbukin vanbukin deleted the uuid-as-dict-key branch August 13, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants