From ada86bdabe0de726a07ed11565444e68e1bb9bb0 Mon Sep 17 00:00:00 2001 From: Oleksandr Tkachuk Date: Wed, 4 Dec 2024 06:28:44 +0200 Subject: [PATCH] fix swagger resource object references and update resourceType enum values --- docs/cooperation/cooperation-schema.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/cooperation/cooperation-schema.yaml b/docs/cooperation/cooperation-schema.yaml index 3351565a..e4590ab5 100644 --- a/docs/cooperation/cooperation-schema.yaml +++ b/docs/cooperation/cooperation-schema.yaml @@ -184,13 +184,18 @@ definitions: properties: resource: type: object - additionalProperties: true + oneOf: + - $ref: '#/definitions/lesson' + - $ref: '#/definitions/quiz' + - $ref: '#/definitions/attachment' + - $ref: '#/definitions/question' resourceType: type: string enum: - lesson - quiz - attachment + - question availability: type: object properties: