Skip to content

Commit

Permalink
Merge pull request #1224 from tdakkota/test/add-issue-1220
Browse files Browse the repository at this point in the history
test: add regression test for issue 1220
  • Loading branch information
tdakkota authored Apr 18, 2024
2 parents 01158d5 + 5bc2ee4 commit 425b5bb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions _testdata/positive/issue1220.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 425b5bb

Please sign in to comment.