-
Notifications
You must be signed in to change notification settings - Fork 480
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
Treat .NET 7 required
properties as actually required by default
#862
Comments
Using sharplab.io, it appears that a RequiredMemberAttribute is added to the Search for this attribute is a trivia. |
Has mentioned by DoctorKrolic here
Option 2 looks pretty, but we must validate that it is not a breaking change (see this Jon Skeet post where he talk about the optional parameters). Does a |
Uh, I see...
Having |
A quick look to the IL shows it unfortunately is 😒 |
Code snippet:
Expected behaviour: Both
Port
andServer
are required and the parsing fails if at least on of them is not present.Actual behaviour: They are not required, I still have to specify
[Option(Required = true)]
in order for it to workThe text was updated successfully, but these errors were encountered: