mirror of https://github.com/ghostfolio/ghostfolio
Thomas Kaul
10 months ago
committed by
GitHub
3 changed files with 14 additions and 4 deletions
@ -1,9 +1,12 @@ |
|||||
import { IsString } from 'class-validator'; |
import { IsString, IsUrl } from 'class-validator'; |
||||
|
|
||||
export class CreatePlatformDto { |
export class CreatePlatformDto { |
||||
@IsString() |
@IsString() |
||||
name: string; |
name: string; |
||||
|
|
||||
@IsString() |
@IsUrl({ |
||||
|
protocols: ['https'], |
||||
|
require_protocol: true |
||||
|
}) |
||||
url: string; |
url: string; |
||||
} |
} |
||||
|
Loading…
Reference in new issue