Skip to content

Conversation

@jeffhandley
Copy link
Member

Follow-up from #91286 and related to #91162

Per a post-merge comment, the source generator changes for this nullable annotation need to be left as-is for now since the generator can target net6 and net7 where the Validator annotations were incorrect. Additional work on that source generator might introduce the ability to omit the ! when targeting net8+, but this PR simply reverts the omission of the ! for now.

#91286 is going to be backported to release/8.0 with #91293. Once merged, this PR will be augmented to that backport PR.

@ghost
Copy link

ghost commented Aug 30, 2023

Tagging subscribers to this area: @dotnet/area-extensions-options
See info in area-owners.md if you want to be subscribed.

Issue Details

Follow-up from #91286 and related to #91162

Per a post-merge comment, the source generator changes for this nullable annotation need to be left as-is for now since the generator can target net6 and net7 where the Validator annotations were incorrect. Additional work on that source generator might introduce the ability to omit the ! when targeting net8+, but this PR simply reverts the omission of the ! for now.

#91286 is going to be backported to release/8.0 with #91293. Once merged, this PR will be augmented to that backport PR.

Author: jeffhandley
Assignees: -
Labels:

area-Extensions-Options

Milestone: -

@ghost ghost assigned jeffhandley Aug 30, 2023
@stephentoub stephentoub merged commit 533a461 into dotnet:main Aug 30, 2023
@jeffhandley jeffhandley deleted the jeffhandley/tryvalidatevalue branch August 30, 2023 17:03
jeffhandley added a commit that referenced this pull request Aug 30, 2023
@jeffhandley jeffhandley added this to the 9.0.0 milestone Aug 30, 2023
carlossanlop pushed a commit that referenced this pull request Aug 31, 2023
…and ValidateValue (#91293)

* Fix nullable annotation for Validator.TryValidateValue and ValidateValue

* Revert Options source generator nullable annotation changes for Validator.TryValidateValue (#91305)

* Fix nullable annotation for Validator.ValidateValue ref source (#91351)

---------

Co-authored-by: Jeff Handley <[email protected]>
@ghost ghost locked as resolved and limited conversation to collaborators Sep 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants