src/insight/dtos/insight.dto.ts
Properties |
|
| Readonly Optional include |
Type : string
|
Default value : "all"
|
Decorators :
@ApiPropertyOptional({description: 'Include all data', example: 'all'})
|
|
Defined in src/insight/dtos/insight.dto.ts:12
|
import { ApiPropertyOptional } from "@nestjs/swagger";
import { IsIn, IsOptional, IsString } from "class-validator";
export class InsightDto {
@ApiPropertyOptional({
description: "Include all data",
example: "all",
})
@IsString()
@IsOptional()
@IsIn(["all", "none"])
readonly include?: string = "all";
}