project init
This commit is contained in:
15
apps/api/src/generation/dto/answer-questions.dto.ts
Normal file
15
apps/api/src/generation/dto/answer-questions.dto.ts
Normal file
@ -0,0 +1,15 @@
|
||||
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[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user