File

src/repo/dtos/repo-info.dto.ts

Index

Properties

Properties

Optional fullName
Type : string
Decorators :
@ApiPropertyOptional({description: 'Repo Full Name', type: String, example: 'open-sauced/insights'})
@IsString()
@IsOptional()
Optional id
Type : number
Decorators :
@ApiPropertyOptional({description: 'Repo ID', type: 'integer', example: 234343})
@IsNumber()
@IsOptional()
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;
}

results matching ""

    No results matching ""