Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@IsDefined({ groups: [CrudValidationGroups.CREATE] })
@IsOptional({ groups: [CrudValidationGroups.UPDATE] })
@MaxLength(255)
@Column('varchar', { length: 255, nullable: true })
name?: string;
@ApiModelPropertyOptional()
@IsDefined({ groups: [CrudValidationGroups.CREATE] })
@IsOptional({ groups: [CrudValidationGroups.UPDATE] })
@MaxLength(255)
@Column('varchar', { length: 255, nullable: true })
surname?: string;
@ApiModelPropertyOptional()
@IsDefined({ groups: [CrudValidationGroups.CREATE] })
@IsOptional({ groups: [CrudValidationGroups.UPDATE] })
@MaxLength(255)
@IsEmail()
@Column('varchar', { length: 255, nullable: true })
email?: string;
}