16 lines
445 B
TypeScript
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[]>;
|
|
}
|