src/user/dtos/follow-many-users.dto.ts
Properties |
|
Public usernames |
Type : string[]
|
Decorators :
@ApiProperty({description: 'An array of usernames to follow', example: undefined, type: 'string', isArray: true})
|
Defined in src/user/dtos/follow-many-users.dto.ts:13
|
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[];
}