From 5ab217990e974bcf9dd1695cb8fd3e6e82c0e2f3 Mon Sep 17 00:00:00 2001 From: Alex Varchuk Date: Tue, 2 Apr 2024 18:13:38 +0300 Subject: [PATCH] docs: update definition --- demo/museum.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/demo/museum.yaml b/demo/museum.yaml index f93fe0ba..4d6f55e0 100644 --- a/demo/museum.yaml +++ b/demo/museum.yaml @@ -64,13 +64,25 @@ paths: summary: Create special event tags: - Events + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSpecialEventRequest' + examples: + default_example: + $ref: '#/components/examples/CreateSpecialEventRequestExample' responses: '200': description: success content: application/json: schema: - $ref: '#/components/schemas/SpecialEvent' + $ref: '#/components/schemas/SpecialEventResponse' + examples: + default_example: + $ref: '#/components/examples/CreateSpecialEventResponseExample' '400': description: Bad request '404':