-
-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support loading specifications from YAML files (#67)
* Add macos/ JetBrains IDE git ignores * Enable loading from YAML specifications
- Loading branch information
Showing
7 changed files
with
97 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
openapi: 3.0.0 | ||
info: | ||
title: '' | ||
version: '1' | ||
paths: {} | ||
components: | ||
schemas: | ||
Name: | ||
type: string | ||
CustomTestSchema: | ||
"$ref": "#/components/schemas/Name" | ||
responses: | ||
Name: | ||
description: description | ||
CustomTestResponse: | ||
"$ref": "#/components/responses/Name" | ||
parameters: | ||
Name: | ||
name: id | ||
in: header | ||
CustomTestParameter: | ||
"$ref": "#/components/parameters/Name" | ||
examples: | ||
Name: | ||
description: description | ||
CustomTestExample: | ||
"$ref": "#/components/examples/Name" | ||
requestBodies: | ||
Name: | ||
content: {} | ||
CustomTestRequestBody: | ||
"$ref": "#/components/requestBodies/Name" | ||
headers: | ||
Name: | ||
description: description | ||
CustomTestHeader: | ||
"$ref": "#/components/headers/Name" | ||
securitySchemes: | ||
Name: | ||
type: cookie | ||
description: description | ||
CustomTestSecurityScheme: | ||
"$ref": "#/components/securitySchemes/Name" |
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,10 @@ | ||
--- | ||
openapi: 3.0.0 | ||
info: | ||
title: 'OAI Specification in YAML' | ||
version: 0.0.1 | ||
paths: {} | ||
components: | ||
schemas: | ||
TestSchema: | ||
type: string |
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,10 @@ | ||
--- | ||
openapi: 3.0.0 | ||
info: | ||
title: 'OAI Specification w/ refs in YAML' | ||
version: '1' | ||
paths: {} | ||
components: | ||
schemas: | ||
AnotherTestSchema: | ||
"$ref": components.openapi.yml#/components/schemas/CustomTestSchema |