From 5bc2ee4f6c4c0b1641257b7c331692d3efd38162 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Wed, 17 Apr 2024 19:35:26 +0300 Subject: [PATCH] test: add regression test for issue 1220 --- _testdata/positive/issue1220.yaml | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 _testdata/positive/issue1220.yaml diff --git a/_testdata/positive/issue1220.yaml b/_testdata/positive/issue1220.yaml new file mode 100644 index 000000000..02002705e --- /dev/null +++ b/_testdata/positive/issue1220.yaml @@ -0,0 +1,49 @@ +openapi: 3.0.3 +servers: + - url: https://my.ru/test + description: api server +info: + version: 1.0.0 + title: "MY API" + +paths: + /user/list: + post: + operationId: MY_UserList + requestBody: + $ref: "#/components/requestBodies/UserRequest" + responses: + "200": + $ref: "#/components/responses/SuccessResponse" + description: Success response + default: + $ref: "#/components/responses/DefaultResponse" + description: Unsuccessful response +components: + responses: + SuccessResponse: + description: A successful response + content: + application/json: + schema: + type: object + format: binary + DefaultResponse: + description: A unsuccessful response + content: + application/json: + schema: + type: object + format: binary + text/plain: + schema: + type: string + format: binary + requestBodies: + UserRequest: + description: A unsuccessful response + content: + application/json: + schema: + type: object + format: binary