You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect nullable annotation on Validator.TryValidateValue's value? #91162
/// <param name="value">The value to test. It cannot be null.</param>
However, the implementation appears to permit null (the only place it's used is being passed to an object? argument in a helper method), the purpose of an attribute like [Required] is to validate one isn't null (which suggests null could otherwise be valid, and the new .NET 8 source generator for options is having to emit code like:
Activity
jeffhandley commentedon Aug 28, 2023
I tried doing some archaeology to figure out where the mismatch between the comment and the behavior came from, but I came up empty-handed.