🌐
GitHub
github.com › typestack › class-validator
GitHub - typestack/class-validator: Decorator-based property validation for classes. · GitHub
Allows use of decorator and non-decorator based validation. Internally uses validator.js to perform validation. Class-validator works on both browser and node.js platforms.
Author   typestack
🌐
GitHub
github.com › topics › class-validator
class-validator · GitHub Topics · GitHub
REST API boilerplate using NodeJS and KOA2, typescript. Logging and JWT as middlewares. TypeORM with class-validator, SQL CRUD. Docker included.
🌐
GitHub
github.com › epiphone › class-validator-jsonschema
GitHub - epiphone/class-validator-jsonschema: Convert class-validator-decorated classes into JSON schema · GitHub
Convert class-validator-decorated classes into OpenAPI-compatible JSON Schema. The aim is to provide a best-effort conversion: since some of the class-validator decorators lack a direct JSON Schema counterpart, the conversion is bound to be somewhat opinionated.
Starred by 241 users
Forked by 37 users
Languages   TypeScript 99.4% | JavaScript 0.6%
🌐
GitHub
github.com › pigulla › class-validator-extended
GitHub - pigulla/class-validator-extended: Additional validators for class-validator. · GitHub
Additional validators for class-validator. Contribute to pigulla/class-validator-extended development by creating an account on GitHub.
Starred by 50 users
Forked by 3 users
Languages   TypeScript
🌐
GitHub
github.com › MichalLytek › class-transformer-validator
GitHub - MichalLytek/class-transformer-validator: A simple plugin for class-transformer and class-validator which combines them in a nice and programmer-friendly API. · GitHub
A simple plugin for class-transformer and class-validator which combines them in a nice and programmer-friendly API. - MichalLytek/class-transformer-validator
Starred by 206 users
Forked by 21 users
Languages   TypeScript
🌐
GitHub
github.com › typestack › class-validator › blob › develop › CHANGELOG.md
class-validator/CHANGELOG.md at develop · typestack/class-validator
Decorator-based property validation for classes. Contribute to typestack/class-validator development by creating an account on GitHub.
Author   typestack
🌐
Class validator
nhcuongng.github.io › class validator - the solution for validating the dto object
Class validator - The solution for validating the DTO object | Mason Nguyen
July 18, 2021 - import { ClassConstructor, plainToClass } from "class-transformer"; import { validate } from "class-validator"; /** * * Validate the payload will be sending or receiving, make sure the data is suitable * * @param dto The DTO object to validate * @param obj The object recieved from response body * * @example * ```ts * await validatorDto(EmployeeDTO, response.data.employee); * * ``` */ export const validatorDto = async <T extends ClassConstructor<any>>( dto: T, obj: Object ) => { // tranform the literal object to class object const objInstance = plainToClass(dto, obj); // validating and check the errors, throw the errors if exist const errors = await validate(objInstance); // errors is an array of validation errors if (errors.length > 0) { throw new TypeError( `validation failed.
🌐
GitHub
github.com › s524797336 › class-validator
GitHub - s524797336/class-validator: Validation made easy using TypeScript decorators.
Validation made easy using TypeScript decorators. Contribute to s524797336/class-validator development by creating an account on GitHub.
Author   s524797336
🌐
Nestjsi
nestjsi.github.io › class-validator
Class Validator
We cannot provide a description for this page right now
Find elsewhere
🌐
GitHub
github.com › typestack › class-validator › blob › develop › docs › README.md
class-validator/docs/README.md at develop · typestack/class-validator
Decorator-based property validation for classes. Contribute to typestack/class-validator development by creating an account on GitHub.
Author   typestack
🌐
GitHub
github.com › Byndyusoft › class-validator-extended
GitHub - Byndyusoft/class-validator-extended: Additional decorators for class-validator and class-transformer
Additional decorators for class-validator and class-transformer - Byndyusoft/class-validator-extended
Author   Byndyusoft
🌐
GitHub
github.com › abarghoud › ngx-reactive-form-class-validator
GitHub - abarghoud/ngx-reactive-form-class-validator · GitHub
A lightweight library for dynamically validate Angular reactive forms using class-validator library.
Starred by 24 users
Forked by 5 users
Languages   TypeScript 90.4% | JavaScript 6.3% | HTML 3.2% | CSS 0.1%
🌐
GitHub
github.com › typestack › class-validator › blob › develop › docs › basics › validating-objects.md
class-validator/docs/basics/validating-objects.md at develop · typestack/class-validator
Decorator-based property validation for classes. Contribute to typestack/class-validator development by creating an account on GitHub.
Author   typestack
🌐
GitHub
github.com › nestjsi › class-validator
GitHub - nestjsi/class-validator: NestJSi Class Validator
NestJSi Class Validator. Contribute to nestjsi/class-validator development by creating an account on GitHub.
Author   nestjsi
🌐
GitHub
github.com › aritradevelops › class-validator-custom-errors
GitHub - aritradevelops/class-validator-custom-errors: Decorator-based property validation for classes with error customization globally
Decorator-based property validation for classes with error customization globally - aritradevelops/class-validator-custom-errors
Author   aritradevelops
🌐
GitHub
github.com › rpinaa › typescript-class-validator
GitHub - rpinaa/typescript-class-validator: Decorate attribute classes to validate using reflection API
import { Validator, Validate } from 'typescript-class-validator'; import { IsDate, IsNotEmpty, MaxDate, IsEmail, Length } from 'class-validator'; class DataDto { @IsNotEmpty() @IsEmail() email: string; @Length(10, 200) @IsNotEmpty() description: string; @IsDate() @IsNotEmpty() @MaxDate(new Date()) birthDate: Date; } class TestClass { @Validate() methodName(@Validator() data: DataDto) { } @Validate() serverControllerEndpoint(@Validator(DataDto, 'body') req: Request) { } } const instance = new TestClass(); // Will throw class-validator errors on runtime instance.methodName({ birthDate: new Date(), description: '123', email: 'fakemail' }); instance.serverControllerEndpoint({ body: { birthDate: new Date(), description: '123', email: 'fakemail' } });
Author   rpinaa
🌐
lambda-middleware
dbartholomae.github.io › lambda-middleware › packages › class-validator
@lambda-middleware/class-validator | lambda-middleware
A validation middleware for AWS http lambda functions based on class-validator and class-transformer.
🌐
jsDocs.io
jsdocs.io › package › class-validator
class-validator@0.15.1 - jsDocs.io
February 26, 2026 - class-validator · github.com/typestack/class-validator · npm · unpkg · RunKit · Index · Files · Dependencies (Dev, Peer) Badge · Versions · Version 0.15.1 · Published 4 months ago · 5.33 MB · 3 dependencies · MIT license · npm i class-validator ·