Uh oh!
There was an error while loading. Please reload this page.
[STJ] Add support for nullable reference annotations on properties - #102499
Conversation
ghost
commented
May 21, 2024
Note regarding the |
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…ion/JsonSerializerOptions.cs Co-authored-by: David Cantú <dacantu@microsoft.com>
…neration.Tests/System.Text.Json.SourceGeneration.Tests.targets Co-authored-by: David Cantú <dacantu@microsoft.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jozkee
left a comment
There was a problem hiding this comment.
LGTM, thanks a lot for taking over.
…otnet#102499) * Progress so far on nullability annotations * Complete implementation and make all NullableAnnotations tests pass. * Update annotations for all failing unit tests. * Update src/libraries/System.Text.Json/gen/Helpers/RoslynExtensions.cs * Update src/libraries/System.Text.Json/gen/Helpers/RoslynExtensions.cs * Address feedback * Update to latest approved API and semantics. * Update src/libraries/System.Private.CoreLib/src/System/Reflection/NullabilityInfoContext.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Update src/libraries/System.Private.CoreLib/src/System/Reflection/NullabilityInfoContext.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Update src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Rename more ignoreNullableAnnotations stragglers. * Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Remove commented out code and address feedback. * Update src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/System.Text.Json.SourceGeneration.Tests.targets Co-authored-by: David Cantú <dacantu@microsoft.com> * Ensure the original parameter name flows exception messages. * Extract exceptions to a throw helper in the new properties. * Extend test coverage to Nullable<T> properties. * Revert sln changes * Add second-pass review improvements. --------- Co-authored-by: David Cantú <dacantu@microsoft.com>
sebastienros
commented
May 29, 2024
@eiriktsarpalis this is breaking the ASP.NET E2E tests as we ingested it for preview5. Here are the logs |
…otnet#102499) * Progress so far on nullability annotations * Complete implementation and make all NullableAnnotations tests pass. * Update annotations for all failing unit tests. * Update src/libraries/System.Text.Json/gen/Helpers/RoslynExtensions.cs * Update src/libraries/System.Text.Json/gen/Helpers/RoslynExtensions.cs * Address feedback * Update to latest approved API and semantics. * Update src/libraries/System.Private.CoreLib/src/System/Reflection/NullabilityInfoContext.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Update src/libraries/System.Private.CoreLib/src/System/Reflection/NullabilityInfoContext.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Update src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Rename more ignoreNullableAnnotations stragglers. * Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs Co-authored-by: David Cantú <dacantu@microsoft.com> * Remove commented out code and address feedback. * Update src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/System.Text.Json.SourceGeneration.Tests.targets Co-authored-by: David Cantú <dacantu@microsoft.com> * Ensure the original parameter name flows exception messages. * Extract exceptions to a throw helper in the new properties. * Extend test coverage to Nullable<T> properties. * Revert sln changes * Add second-pass review improvements. --------- Co-authored-by: David Cantú <dacantu@microsoft.com>
JsonParameterInfometadata such that properties and constructor parameters are associated early in the contract resolution process and annotations of both feed into theJsonPropertyInfo.DisallowNullReadsproperty.Fix#100144