From cee33115fbedb4495a1bb7c793bf6142311b4471 Mon Sep 17 00:00:00 2001 From: Luca Pezzolla Date: Tue, 19 Dec 2023 12:23:08 +0100 Subject: [PATCH] fix(exams): forward course shortcode when booking an exam --- openapi.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index bf9c92b..bd61bbb 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1363,12 +1363,15 @@ paths: schema: type: integer requestBody: - description: 'Only needed if the exam you are booking includes a question' content: application/json: schema: type: object properties: + courseShortcode: + type: string + description: The course shortcode + example: 01UDROV questionId: type: integer description: The id of the question @@ -1381,8 +1384,8 @@ paths: type: string description: The reason for the exam booking request example: "I'm not sure" - example: { } - required: false + required: [ courseShortcode ] + required: true responses: 200: description: Success