File

src/user-lists/dtos/collaborators.dto.ts

Index

Properties

Properties

contributors
Type : literal type[]
Decorators :
@ApiProperty({description: 'An array of contributor user IDs', isArray: true, type: 'integer', example: undefined})
@IsArray()
@Type(undefined)
import { ApiProperty } from "@nestjs/swagger";
import { Type } from "class-transformer";
import { IsArray } from "class-validator";
import { Contributor } from "./create-user-list.dto";

export class CollaboratorsDto {
  @ApiProperty({
    description: "An array of contributor user IDs",
    isArray: true,
    type: "integer",
    example: [{ id: 42211 }, { login: "bdougie" }],
  })
  @IsArray()
  @Type(() => Contributor)
  contributors: { id: number; login?: string }[];
}

results matching ""

    No results matching ""