Why is my strongly type html having a data-val-required attribute even though I didn't specified in my model property to be required? Here is my model class
public class Document
{
public string Name { get; set; }
public bool IsConfirmed { get; set; }
}
Here is the html being rendered:
<input class="full-width" data-val="true" data-val-required="The IsConfirmed field is required." id="Document_0__IsConfirmed" name="Document.IsConfirmed" type="checkbox" value="true" title="" autocomplete="off" />
<input name="Document.IsConfirmed" type="hidden" value="false" />
Your help will be much appreciated.