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
- feature: does not allow to send two different parameter at the same time.
- feat: `validateIf` for validation options
- question: More advanced error messages for custom validators with custom or dynamic properties?
- fix: isNotEmptyObject `nullable` option works opposite way
- feature: make `NotMatches()`, a negation of `Matches()`
- fix: forbidNonWhitelisted and skipUndefinedProperties don't go along well
- feature: Validating arrays length with wrong decorators (@Length and or @MinLength, @MaxLength)
- feature: <Number array Validation>
- fix: IsDefined + IsOptional combination return error 500 instead of 400 (bad request)
- question: strip field with whitelist if ValidateIf return false
- Docs
- TypeScript not yet supported