File

apps/recallassess/recallassess-api/src/api/admin/knowledge-review/dto/quiz/knowledge-review-answer-add.dto.ts

Index

Properties

Properties

answer_text
Type : string
Decorators :
@Expose()
@IsString()
Optional explanation
Type : string | null
Decorators :
@Expose()
@IsOptional()
@IsString()
Optional is_correct
Type : boolean
Decorators :
@Expose()
@IsOptional()
@IsBoolean()
knowledge_review_question_id
Type : number
Decorators :
@Expose()
@IsInt()
Optional sort_order
Type : number
Decorators :
@Expose()
@IsOptional()
@IsInt()
import { IsBoolean, IsInt, IsOptional, IsString } from "class-validator";
import {Expose, Exclude} from "class-transformer";

@Exclude()
export class KnowledgeReviewAnswerAddDto {
  @Expose()
  @IsInt()
  knowledge_review_question_id!: number;

  @Expose()
  @IsString()
  answer_text!: string;

  @Expose()
  @IsOptional()
  @IsBoolean()
  is_correct?: boolean;

  @Expose()
  @IsOptional()
  @IsInt()
  sort_order?: number;

  @Expose()
  @IsOptional()
  @IsString()
  explanation?: string | null;
}

results matching ""

    No results matching ""