-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add Options type name to validation error #51557
Comments
Tagging subscribers to this area: @ajcvickers Issue DetailsThe current
This makes it hard to locate the problematic option, especially when using Please add Line 52 in f9ce10f
|
@maryamariyan I think the bot misassigned this? |
Tagging subscribers to this area: @maryamariyan Issue DetailsThe current
This makes it hard to locate the problematic option, especially when using Please add Line 52 in f9ce10f
|
Yes, thanks! |
The current
DataAnnotationValidateOptions
does not have the option type in the error message:This makes it hard to locate the problematic option, especially when using
ValidateOnStart
Please add
typeof(TOptions).Name
(or maybeFullName
?) here:runtime/src/libraries/Microsoft.Extensions.Options.DataAnnotations/src/DataAnnotationValidateOptions.cs
Line 52 in f9ce10f
The text was updated successfully, but these errors were encountered: