File

src/insight/dtos/insight.dto.ts

Index

Properties

Properties

Readonly Optional include
Type : string
Default value : "all"
Decorators :
@ApiPropertyOptional({description: 'Include all data', example: 'all'})
@IsString()
@IsOptional()
@IsIn(['all', 'none'])
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";
}

results matching ""

    No results matching ""