From cd4f796f5c102ef1a73813e3f4a86ae2991212de Mon Sep 17 00:00:00 2001 From: Domenico Rotolo Date: Fri, 6 Sep 2024 17:58:22 +0200 Subject: [PATCH] Update swagger.yaml --- docs/swagger.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 947e953..9c2597f 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -269,11 +269,18 @@ components: answerList: type: array items: - type: string - description: List of possible answers. + type: object + properties: + id: + type: string + description: A unique identifier for the answer. + value: + type: string + description: The answer text. + description: List of possible answers, each with a unique id and value. correctAnswer: type: string - description: The correct answer. + description: The correct answer id. value: type: integer description: The point value of the question.