File
|
description
|
Type : string
|
Decorators :
@ApiProperty({description: 'Workspace description', type: String, example: 'A workspace for my OSS collaborators'}) @IsString()
|
|
|
|
Optional
is_public
|
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'A boolean to make the workspace public: the authenticated user must be a paid customer', type: String, example: 'true'}) @IsOptional() @IsBooleanString()
|
|
|
|
name
|
Type : string
|
Decorators :
@ApiProperty({description: 'Workspace name', type: String, example: 'My Workspace'}) @IsString()
|
|
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsBooleanString, IsOptional, IsString } from "class-validator";
export class UpdateWorkspaceDto {
@ApiProperty({
description: "Workspace name",
type: String,
example: "My Workspace",
})
@IsString()
name: string;
@ApiProperty({
description: "Workspace description",
type: String,
example: "A workspace for my OSS collaborators",
})
@IsString()
description: string;
@ApiPropertyOptional({
description: "A boolean to make the workspace public: the authenticated user must be a paid customer",
type: String,
example: "true",
})
@IsOptional()
@IsBooleanString()
is_public?: string;
}