-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fix for basic relative URLs in servers (#67)
Co-authored-by: Igor Savin <iselwin@gmail.com>
- Loading branch information
1 parent
15d8007
commit 4165d0e
Showing
4 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
test/openapi3/general/pets-general-relative-paths-too.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
openapi: 3.0.0 | ||
info: | ||
version: 1.0.0 | ||
title: Swagger Petstore | ||
license: | ||
name: MIT | ||
paths: | ||
/text: | ||
put: | ||
requestBody: | ||
content: | ||
plain/text: | ||
schema: | ||
type: string | ||
required: true | ||
responses: | ||
"200": | ||
description: Expected response to a valid request | ||
content: | ||
plain/text: | ||
schema: | ||
properties: | ||
lastname: | ||
type: string | ||
default: | ||
description: unexpected error | ||
content: | ||
text/plain: | ||
schema: | ||
$ref: "#/components/schemas/Error" | ||
|
||
/empty: | ||
post: | ||
requestBody: | ||
description: Expected response to a valid request | ||
content: | ||
plain/text: | ||
schema: | ||
type: string | ||
required: true | ||
responses: | ||
"200": | ||
description: Expected response to a valid request | ||
content: | ||
plain/text: | ||
schema: | ||
properties: | ||
lastname: | ||
type: string | ||
default: | ||
description: unexpected error | ||
content: | ||
text/plain: | ||
schema: | ||
$ref: "#/components/schemas/Error" | ||
/json: | ||
put: | ||
parameters: | ||
- in: header | ||
name: public-key | ||
schema: | ||
type: string | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
required: true | ||
responses: | ||
"200": | ||
description: Expected response to a valid request | ||
content: | ||
application/json: | ||
schema: | ||
properties: | ||
lastname: | ||
type: string | ||
default: | ||
description: unexpected error | ||
content: | ||
text/plain: | ||
schema: | ||
$ref: "#/components/schemas/Error" | ||
servers: | ||
- url: http://petstore.swagger.io | ||
- url: http://petstore.swagger.io/staging/ | ||
- url: /v1/reports | ||
components: | ||
schemas: | ||
Error: | ||
required: | ||
- code | ||
- message | ||
properties: | ||
code: | ||
type: integer | ||
message: | ||
type: string |