fix(projects): 修复若干问题。

This commit is contained in:
Ivan Li
2021-02-17 14:32:44 +08:00
parent db6b699663
commit c2c5340278
3 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,11 @@
import { InputType } from '@nestjs/graphql';
import { IsString, IsUrl, MaxLength, MinLength } from 'class-validator';
import {
IsOptional,
IsString,
IsUrl,
MaxLength,
MinLength,
} from 'class-validator';
@InputType({ isAbstract: true })
export class CreateProjectInput {
@ -18,6 +24,7 @@ export class CreateProjectInput {
sshUrl: string;
@IsUrl()
@IsOptional()
@MaxLength(256)
webUrl?: string;