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(Length): don't reference unset constraint in error message
- feat: add IsMutuallyExclusiveWith decorator
- Security hardening: validateSync/validate inspect the live object → read-unstable properties (getters/Proxy) can bypass validation
- fix: `getTargetValidationMetadatas` scans every registered class on each validation (O(N)), dominating CPU in large apps
- fix: reject enum member names in @IsEnum for numeric enums
- fix: isObject should return false for functions
- feature: Move IsPhoneNumber outside of this package
- docs: fix typos and grammar throughout README
- Saudi Arabia (SA) mobile numbers starting with 052x and 057x are incorrectly rejected.
- fix: @ValidateNested does not work recursively
- Docs
- TypeScript not yet supported