I currently have an Enum containing various timezones listed below
export enum Timezones {
'Europe/Andorra',
'Asia/Dubai',
'Asia/Kabul',
'America/Antigua'
}
In the DTO file, I am attempting to validate the timezone field using the Enum as depicted below
@IsEnum(Timezones, { each: true })
timezone: string;
Unfortunately, the validation process is not functioning properly and is allowing acceptance of other values.