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
- question: How to use IsOptional with groups?
- feature: Support CIDR notation in IsIP validator
- An "or" decorator! so that a property can be of multiple types
- feat: make `IsOptional` conditional
- ValidateBy / buildMessage is a much cleaner interface (should be preferred in docs)
- Support promises when handling validation messages
- Passing custom validator options to custom validators
- GeoJson validation
- Referring to same-class attributes within annotation
- Multiple validation paths based on the condition
- Docs
- TypeScript not yet supported