class-validator
https://github.com/typestack/class-validator
TypeScript
Decorator-based property validation for classes.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
TypeScript not yet supported4 Subscribers
Add a CodeTriage badge to class-validator
Help out
- Issues
- fix: isPhoneNumber decorator ignores the region parameter
- fix: Misleading IsMilitaryTime default error message and optional : (colon)
- fix: `@IsIn()` returns false positive `true` if not an `Array` instance was passed
- question: Validating array of union type
- fix: whitelist:true removes boolean properties set to false
- feature: [question] would it be possible to add some whitelisted property names
- question: Get unkown value property name from error message
- feature: IsEnum should has a typeFunction param
- feature: @AtLeastOne() if none of props has value
- question: accept only objects of a given validate-required form within an array
- Docs
- TypeScript not yet supported