-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Consider the impact of C# 11's required properties on model binding / validation #40099
Comments
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. We're moving this issue to the |
Another thing to add to the list now that we have support for |
@brunolins16 and I just met to discuss this. One thing we noted in our investigation is that it is important to have nullability disabled while assessing the impacted of the required property, since our support for inferring requiredness from nullability can mask behaviors. Some other notes include:
|
Feature: https://github.com/dotnet/csharplang/blob/main/proposals/required-members.md
Using this keyword appears as an attribute in the generated code. We could envision reading it and treated it as the equivalent of
BindRequiredAttribute
(this property must have a value).The text was updated successfully, but these errors were encountered: