Coding task · NestJS course · Module 2: Routing and Request Lifecycle
Introduction: DTO with Validation Decorators
Create a DTO with class-validator decorators to validate tribute data.
Task
Write a CreateTributeDto with province (@IsString), amount (@IsNumber, @Min(1)), and type (@IsEnum) fields