apps/recallassess/recallassess-api/src/api/admin/knowledge-review/dto/quiz/knowledge-review-answer-add.dto.ts
Properties |
|
| answer_text |
Type : string
|
Decorators :
@Expose()
|
| Optional explanation |
Type : string | null
|
Decorators :
@Expose()
|
| Optional is_correct |
Type : boolean
|
Decorators :
@Expose()
|
| knowledge_review_question_id |
Type : number
|
Decorators :
@Expose()
|
| Optional sort_order |
Type : number
|
Decorators :
@Expose()
|
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;
}