-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Prevent runtime prop metadata retrieval when [JsonIgnore] is used #60024
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
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-text-json |
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/tests/Common/TestClasses/TestClasses.Constructor.cs
Outdated
Show resolved
Hide resolved
c43b151 to
ffb733f
Compare
...braries/System.Text.Json/tests/Common/ConstructorTests/ConstructorTests.ParameterMatching.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/tests/Common/PropertyVisibilityTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/tests/Common/PropertyVisibilityTests.cs
Outdated
Show resolved
Hide resolved
...braries/System.Text.Json/tests/Common/ConstructorTests/ConstructorTests.ParameterMatching.cs
Outdated
Show resolved
Hide resolved
d901f29 to
6112780
Compare
...ibraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/GenericMethodHolder.cs
Outdated
Show resolved
Hide resolved
08945c3 to
ae2f69c
Compare
steveharter
left a comment
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 assuming green CI
| JsonSerializerOptions options) | ||
| { | ||
| JsonPropertyInfo jsonPropertyInfo = converter.CreateJsonPropertyInfo(); | ||
| JsonPropertyInfo jsonPropertyInfo = new JsonPropertyInfo<sbyte>(); |
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.
Could you also add a comment here explaining why sbyte is being used?
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.
Will be sure to do so in a follow up to avoid CI reset. It will be the same as the comment on CreateIgnoredParameterPlaceholder below.
|
Test failures unrelated. |
|
/backport to release/6.0 |
|
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1333901172 |
Fixes #59936, a 6.0 regression. Contributes to #59364.