AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Missing Required attribute on last code snippet

Open JohnCOsborne opened this issue 8 years ago • 1 comments

[RegularExpression(@"^[A-Z]+[a-zA-Z0-9""'\s-]*$"), StringLength(5)]
public string Rating { get; set; } should be 
[RegularExpression(@"^[A-Z]+[a-zA-Z0-9""'\s-]*$"), StringLength(5), Required]
public string Rating { get; set; }

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

JohnCOsborne avatar Jun 17 '18 03:06 JohnCOsborne

The Title property in that snippet is missing the Required attribute as well.

cdorst avatar Jun 17 '18 12:06 cdorst