-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change slug usage to encoded text (#261)
* Chore remove slugify * Feat change slug to encoding text * Feat decoded workspace_slug to encoding back * Feat Add validate title length in CreateModal * Refactor remove duplicated error check * Feat update validation for nickname and title length
- Loading branch information
Showing
9 changed files
with
43 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
import { MinLength } from "class-validator"; | ||
|
||
export class ChangeNicknameDto { | ||
@ApiProperty({ type: String, description: "Nickname of user to update" }) | ||
@ApiProperty({ type: String, description: "Nickname of user to update", minLength: 2 }) | ||
@MinLength(2) | ||
nickname: string; | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
import { MinLength } from "class-validator"; | ||
|
||
export class CreateWorkspaceDto { | ||
@ApiProperty({ description: "Title of project to create", type: String }) | ||
@ApiProperty({ description: "Title of project to create", type: String, minLength: 2 }) | ||
@MinLength(2) | ||
title: string; | ||
} |
This file contains 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
This file contains 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
This file contains 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