This project adds support to Nancy.Validation.DataAnnotations
for the following .NET 4.5 attributes.
- CompareAttribute
- CreditCardAttribute
- EmailAddressAttribute
- EnumDataTypeAttribute
- FileExtensionsAttribute
- MaxLengthAttribute
- MinLengthAttribute
- PhoneAttribute
- UrlAttribute
Install via NuGet Install-Package Nancy.Validation.DataAnnotations.Extensions
By default Nancy will load and register all IDataAnnotationsValidatorAdapter
instances. Unless you've changed how these get loaded there's nothing to configure.
- Tag the most recent commit
- Bump the version number in
SharedAssemblyInfo.cs
Copyright (c) 2017 Brian Surowiec under the MIT License.