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)
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...

Lior Baber
Votes: 0
Answers: 1
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 ...

ThomasReggi
Votes: 0
Answers: 1