Created
August 24, 2020 11:26
-
-
Save nmchenry01/0e3d6877d3ad730998023efae84873a2 to your computer and use it in GitHub Desktop.
Create task DTO "NestJS with Swagger"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class CreateTask { | |
| @IsNotEmpty() | |
| @IsString() | |
| title: string; | |
| @IsNotEmpty() | |
| @IsString() | |
| description: string; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment