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: `@IsEnum()` does not error when enum-key is used instead of enum-value
- question: How to validate map with array as values? eg: Map<string,string[]>
- question: validating sub-types: reject invalid discriminator values, avoid looking inside arrays
- feature: Pick and Omit type helpers
- feature: Remove confusion between Length, MinLength and MaxLength
- feature: Localization
- feature: allow to pass extra arguments to message builders
- fix: stopAtFirstError not working as expected, a custom decorator executes when previous validator fails
- feature: allow to use @IsInstance and @IsEnum with () => value
- feature: Adding IsPrimitiveType decorator
- Docs
- TypeScript not yet supported