Skip to content
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

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

Merged
merged 1 commit into from
Aug 30, 2023

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
105 checks passed
@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 <jeffhandley@users.noreply.github.com>
@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