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 }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
The case of [BindRequired] is one where the app developer has a programming error because they didn't post a value at all for the field, and so the displayed error could be improved to indicate something like "A value for the '{0}' property was not provided."
The Data Annotations one is fine because that represents a user error (user didn't type a value into a required field).
…indRequired]`
- only use MVC error message when `[BindRequired]` is violated
- update that error message to more clearly describe the problem
- enable all tests skipped due to dupe bug #2493
- update expectations of a few tests using the old messages
nits:
- rename `ModelBinding_MissingRequiredMember` to `ModelBinding_MissingBindRequiredMember`
- remove `<param>` description of removed `requiredValidator` parameter
- remove unused `MutableObjectModelBinderTest.GetRequiredValidator()`
For example error for the following says :
The 'OrderIds' property is required.
While the error for the following scenario says :
The OrderIds field is required.
This is because error for BindRequired is added by MutableObjectBinder and not the validation code.
The text was updated successfully, but these errors were encountered: