Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about class-validator

Read more about class-validator

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - class-validator

imported class with class-validator annotration is not validated by Validation pipe

I have a simple nest controller with validation pipe decorator import {GetCatDto} from 'my-shared-lib' @Controller('myController') export class MyController { constructor(private readonly policyMa...
test-img

Lior Baber

node.js

typescript

nestjs

dto

class-validator

Votes: 0

Answers: 1

Latest Answer

So it turns out the main issue was due to the fact that the class-transformer version in my shared lib was not exactly the same as it was in my service. once I straightened that up it worked as expect...
test-img

Lior Baber

How do I loop over all class properties defined using class-validator?

I have a class defined using the class-validator package. class Shape { @IsString() value?: string @IsString() id?: string } I'm looking for a way to access the properties and types ...
test-img

ThomasReggi

typescript

class-validator

Votes: 0

Answers: 1

Latest Answer

This is a function that returns all the decorators names, it's not 100% the type, but it is pretty usefull. // eslint-disable-next-line function propertyTypes (targetConstructor: Function) { const...
test-img

ThomasReggi

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved