src/auth/dtos/user-onboarding.dto.ts
Properties |
| Public interests |
Type : string[]
|
Decorators :
@ApiProperty({description: 'An array of interests', type: 'string', isArray: true, example: undefined})
|
|
Defined in src/auth/dtos/user-onboarding.dto.ts:12
|
| Public timezone |
Type : string
|
Decorators :
@ApiProperty({description: 'User timezone in UTC', type: String, example: 'UTC-5'})
|
|
Defined in src/auth/dtos/user-onboarding.dto.ts:20
|
import { ApiProperty } from "@nestjs/swagger";
import { IsArray, IsString } from "class-validator";
export class UserOnboardingDto {
@ApiProperty({
description: "An array of interests",
type: "string",
isArray: true,
example: ["javascript", "react"],
})
@IsArray()
public interests: string[];
@ApiProperty({
description: "User timezone in UTC",
type: String,
example: "UTC-5",
})
@IsString()
public timezone: string;
}