Files
course-craft-service/apps/api/src/generation/dto/answer-questions.dto.ts
2026-02-06 02:17:59 +03:00

16 lines
445 B
TypeScript

import { IsObject } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class AnswerQuestionsDto {
@ApiProperty({
description: 'Object with question IDs as keys and answers as values',
example: {
target_audience: 'Начинающие',
course_depth: 'Стандартный',
specific_topics: 'React, TypeScript',
},
})
@IsObject()
answers!: Record<string, string | string[]>;
}