Top "Class-validator" questions

Open-source TypeScript library for validation using TypeScript decorators.

Validate nested objects using class validator and nestjs

I'm trying to validate nested objects using class-validator and NestJS. I've already tried following this thread by using the @Type …

javascript node.js typescript nestjs class-validator
Validation on optional Parameter using class-validator in nestjs?

I want to apply validation on request payload like, there is field name with string type. But name is not …

javascript node.js validation nestjs class-validator
Class-validator - validate array of objects

I am using class-validator package with NestJS and I am looking to validate an array of objects that need to …

arrays typescript validation nestjs class-validator
validate nested objects using class-validator in nest.js controller

I want to validate body payload using class-validator in a nest.js controller. My currency.dto.ts file is like …

javascript node.js typescript nestjs class-validator
NestJS: How to transform an array in a @Query object

I'm new to NestJS and I am trying to fill a filter DTO from query Parameters. Here is what I …

nestjs class-validator class-transformer
nodejs class-validator validating array of objects

I have a array of objects that looks like this [{ name: 'some name' catId: 2, }, { name: 'another name' catId: 3, }] How can …

node.js arrays validation class-validator
NestJS - Validating body conditionally, based on one property

I'm trying to find a nice way to validate a body using DTO (using the brilliant class-validator and class-transformer libraries). …

node.js typescript nestjs class-validator class-transformer