My DTO is
@Expose()
@IsNotEmpty()
@IsJSON({ each: true })
filesRole: string
filesRole is something like that: [{"file": "14125.png", "role": "bg"}, {"file": "x12.png", "role": "cover"}]
I want to validate role
to be bg
or cover
.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
My DTO is
@Expose()
@IsNotEmpty()
@IsJSON({ each: true })
filesRole: string
filesRole is something like that: [{"file": "14125.png", "role": "bg"}, {"file": "x12.png", "role": "cover"}]
I want to validate role
to be bg
or cover
.