fix(projects): 修复若干问题。
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user