From 44ce9b8ad2837d47da44a6dca23e71015ddcf450 Mon Sep 17 00:00:00 2001 From: luiqor Date: Mon, 18 Nov 2024 15:21:44 +0200 Subject: [PATCH] fix docs body schemas to have id strings instead of refs --- docs/cooperation/cooperation-schema.yaml | 8 ++++++-- docs/quiz/quiz-schema.yaml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/cooperation/cooperation-schema.yaml b/docs/cooperation/cooperation-schema.yaml index f3868d40..0d80d806 100644 --- a/docs/cooperation/cooperation-schema.yaml +++ b/docs/cooperation/cooperation-schema.yaml @@ -133,9 +133,13 @@ definitions: type: object properties: offer: - $ref: '#/definitions/offer' + type: string + description: _id + ref: '#/definitions/offer' receiver: - $ref: '#/definitions/user' + type: string + description: _id + ref: '#/definitions/user' receiverRole: type: string price: diff --git a/docs/quiz/quiz-schema.yaml b/docs/quiz/quiz-schema.yaml index 1aaadfe7..9990657a 100644 --- a/docs/quiz/quiz-schema.yaml +++ b/docs/quiz/quiz-schema.yaml @@ -48,11 +48,15 @@ definitions: description: type: string category: - $ref: '#/definitions/resourcesCategory' + type: string + description: _id + ref: '#/definitions/resourcesCategory' items: type: array items: - $ref: '#/definitions/question' + type: string + description: _id + ref: '#/components/question' settings: type: object properties: