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
- Adding generic for ValidationSchema to enforce type checking.
- Bad overload design for a validation function
- feature: export ValidationMetadata
- doc: conflicting documentation about Skipping missing properties
- Using @ValidateNested with an array that contains a null element will result in a crash.
- Pass transaction entity manager to custom decorator validator
- Allow validation to fail and return after first rule break
- feature: allow passing dynamic constraints to the validate function
- Should we add decorators @MaxLengthObjectKeys() and MinLengthObjectKeys()?
- Is there a condition hook like '@ValidateIf' but is the last hook and validate after all rules?
- Docs
- TypeScript not yet supported