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: [NestJS/useContainer] Dependency injection when provider scope is not default
- feature: allow validator on whole class
- feature: skipMissingPropertiesForce
- feature: ValidationError to extend native Error class
- fix: IsNumber decorator fails on values ABS(x) < 0.000001 when using maxDecimalPlaces
- 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
- Docs
- TypeScript not yet supported