File

src/user/dtos/follow-many-users.dto.ts

Index

Properties

Properties

Public usernames
Type : string[]
Decorators :
@ApiProperty({description: 'An array of usernames to follow', example: undefined, type: 'string', isArray: true})
@IsArray()
@IsString({each: true})
import { ApiProperty } from "@nestjs/swagger";
import { IsArray, IsString } from "class-validator";

export class FollowManyUsersDto {
  @ApiProperty({
    description: "An array of usernames  to follow",
    example: ["jpmcb", "bdougie", "brandonroberts"],
    type: "string",
    isArray: true,
  })
  @IsArray()
  @IsString({ each: true })
  public usernames: string[];
}

results matching ""

    No results matching ""