tests fix

This commit is contained in:
2023-12-06 00:15:52 +03:00
parent d50f5e8031
commit 4046e71ffa
5 changed files with 84 additions and 17 deletions

View File

@ -71,8 +71,8 @@ namespace frontend\modules\api\models;
* schema="UserResponseExampleArr",
* type="array",
* example={
* {"user_id": 23, "question_id": 22, "response_body": "Ответ 1", "user_questionnaire_uuid": "d222f858-60fd-47fb-8731-dc9d5fc384c5",},
* {"user_id": 16, "question_id": 3, "response_body": "Ответ 22", "user_questionnaire_uuid": "d222f858-60fd-47fb-8731-dc9d5fc384c5",},
* {"user_id": 23, "question_id": 22, "answer_id": 32, "response_body": "Ответ 1", "user_questionnaire_uuid": "d222f858-60fd-47fb-8731-dc9d5fc384c5",},
* {"user_id": 16, "question_id": 3, "answer_id": 44, "response_body": "Ответ 22", "user_questionnaire_uuid": "d222f858-60fd-47fb-8731-dc9d5fc384c5",},
* },
* @OA\Items(
* type="object",
@ -85,6 +85,10 @@ namespace frontend\modules\api\models;
* type="integer",
* ),
* @OA\Property(
* property="answer_id",
* type="integer",
* ),
* @OA\Property(
* property="response_body",
* type="string",
* ),
@ -103,6 +107,7 @@ class UserResponse extends \common\models\UserResponse
return [
'user_id',
'question_id',
'answer_id',
'response_body',
'user_questionnaire_uuid',
];