-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add API entry for JsonDocument converter #60236
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json Issue DetailsFixes #59954 by adding an API entry for JsonDocument converter in the JsonMetadataServices
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think more work is needed to wire the converter into the source generator implementation. Could you add a few tests as well?
...ries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Converters.cs
Outdated
Show resolved
Hide resolved
👍 Ideally, we want to abstract the We also need to add
|
I fixed the naming conventions and added But I am having a very hard time creating the tests needed. I read the changes on the PR #58912 and from what I understood there were two main changes:
If I understood correctly the idea was to abstract the JsonDocument tests from Sorry for not being of more help with this, and thanks for all the help! |
Hi @strobelt, we haven't had a chance to take a look at this yet. If you don't mind I will close this PR for now but we will revisit once we find the time to work on it. |
1e89725
to
9acc45d
Compare
I've rebased the changes and added a couple of simple unit tests. Rather than abstracting the existing JsonDocument/JsonElement suite, I included a couple of simple acceptance tests in the |
Test failures unrelated, cf. #68293 |
Thank you for your contribution @strobelt! |
Fixes #59954 by adding an API entry for JsonDocument converter in the JsonMetadataServices