Created
April 2, 2022 06:10
-
-
Save sunnyy02/c5bc05ae5679f6e65a8625e110960135 to your computer and use it in GitHub Desktop.
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
| import { IsString, IsInt } from 'class-validator'; | |
| export class CreateCatDto { | |
| @IsString() | |
| name: string; | |
| @Length(10) | |
| description: string; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment