-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Clean up JSON source gen APIs #54527
Conversation
Tagging subscribers to this area: @eiriktsarpalis, @layomia Issue DetailsAddresses misc feedback about the source gen APIs. I plan to merge this PR now, then batch the API diff with upcoming additional changes (to address various to-dos from #45448). I'll take the changes to API review before preview 7. FYI @pranavkm
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
Outdated
Show resolved
Hide resolved
Tagging @dotnet/compat for awareness of the breaking change. |
e3312d9
to
e939506
Compare
src/libraries/System.Text.Json/Common/JsonSourceGenerationOptionsAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Parser.cs
Outdated
Show resolved
Hide resolved
...ries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/MixedModeContextTests.cs
Outdated
Show resolved
Hide resolved
...ries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/MixedModeContextTests.cs
Show resolved
Hide resolved
b87231a
to
93a1da7
Compare
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.
LGTM. Thanks for the cleanup!
Hello @layomia! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Test failures are unrelated. |
It looks like this needs a breaking change issue for Preview 7, if I'm reading it correctly. |
These breaking changes have already hit customers & the APIs have changed further since then - dotnet/docs#26200. |
Addresses misc feedback about the source gen APIs. I plan to merge this PR now, then batch the API diff with upcoming additional changes (to address various to-dos from #45448). I'll take the changes to API review before preview 7.
FYI @pranavkm