src/repo/dtos/repo-info.dto.ts
Properties |
| Optional fullName |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Repo Full Name', type: String, example: 'open-sauced/insights'})
|
|
Defined in src/repo/dtos/repo-info.dto.ts:21
|
| Optional id |
Type : number
|
Decorators :
@ApiPropertyOptional({description: 'Repo ID', type: 'integer', example: 234343})
|
|
Defined in src/repo/dtos/repo-info.dto.ts:12
|
import { ApiPropertyOptional } from "@nestjs/swagger";
import { IsNumber, IsOptional, IsString } from "class-validator";
export class RepoInfo {
@ApiPropertyOptional({
description: "Repo ID",
type: "integer",
example: 234343,
})
@IsNumber()
@IsOptional()
id?: number;
@ApiPropertyOptional({
description: "Repo Full Name",
type: String,
example: "open-sauced/insights",
})
@IsString()
@IsOptional()
fullName?: string;
}