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
|
eiriktsarpalis
left a comment
There was a problem hiding this comment.
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