-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: validation pipe does not work properly
- Loading branch information
1 parent
8fbbf05
commit 2760aeb
Showing
7 changed files
with
19 additions
and
70 deletions.
There are no files selected for viewing
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
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
19 changes: 8 additions & 11 deletions
19
...esign/server/pathway/interface-adapters/src/lib/initialize/dtos/request/body/index.dto.ts
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,15 +1,12 @@ | ||
export class InitializePathwayRequestBodyDto | ||
implements IInitializePathwayRequestBodyDto | ||
{ | ||
readonly title!: string; | ||
import { IsString } from 'class-validator'; | ||
|
||
readonly description!: string; | ||
export class InitializePathwayRequestBodyDto { | ||
@IsString() | ||
title!: string; | ||
|
||
readonly researchField!: string; | ||
} | ||
@IsString() | ||
description!: string; | ||
|
||
export interface IInitializePathwayRequestBodyDto { | ||
description: string; | ||
researchField: string; | ||
title: string; | ||
@IsString() | ||
researchField!: 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