typescript class validator validate enum array

Solutions on MaxInterview for typescript class validator validate enum array by the best coders in the world

showing results for - "typescript class validator validate enum array"
Samuel
22 Jan 2020
1export class UserDto {
2  @IsEmail()
3  readonly email: string;
4
5  @IsOptional()
6  @IsEnum(Permissions, { each: true })
7  readonly permissions: Permissions[]; <- How to validate this?
8}
queries leading to this page
class validator isnotempty trim all spacesjs class validator validate with enumsimport type 7b validatoroptions 7d from 22class validator 22class validator default valueclass validator is alphais boolean class validatorarray of enums class validattorclass validator custom due dateisuuidstring in class validatorclass validator is enum exampleclass validator nested array objectclass validator not giving errortypescript class validator enumclass validator should match enumclass validator validate unique values in arrayclass validator jestclass validator confirm passwordclass validator unionclass validator is enumclass validator decoratornpm class validator enumnodejs class validator ignore 40istimestamp class validator jsclass validation stop validation of next validationtypescript class validator validate enum arrayclass validator arraynestjs class validator extra field validatinclass validator entire numberclass validator compare number stringclass validator jsclass validator type araytypescript subclass validationhow to install class validator for 6 14class validator no spaceclass validator get requestclass validator uniquemongoose schema class validator issueclass validator nestjs update passowrdclass validator id phone numberclass validator error message enummust be a valid enum class validatorclass validator enum arrayclass validator array of enumclass validator global authenticationclass validator for dto validationsimport type 7b validatoroptions 7d from 22class validator 22 3bclass validation get property nameclass validator get request objectclass validatorclass validator no space between textclass validator auto trim when validatingclass validator validate confirm passwordclass validator default valueclass validator phone numberclass validator boolean valuesget request in class validatorclass validator value matchesclass validator nest yarndecorator matches is not working nestjs in class validatorclass validator enumisin array in nestjspass array in decorator validator nettypescript class validator validate enum array