-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f8c90f
commit d6515a1
Showing
5 changed files
with
77 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
apis: | ||
main: | ||
root: ./test.yaml | ||
first: | ||
root: ./test-success.yaml | ||
second: | ||
root: ./test-wrong-examples.yaml | ||
|
||
extends: | ||
- recommended |
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,33 @@ | ||
openapi: 3.1.0 | ||
security: [] | ||
info: | ||
version: 1.0.0 | ||
title: Example.com | ||
termsOfService: https://example.com/terms/ | ||
contact: | ||
email: contact@example.com | ||
url: http://example.com/contact | ||
license: | ||
name: Apache 2.0 | ||
url: http://www.apache.org/licenses/LICENSE-2.0.html | ||
description: OpenAPI description with external example | ||
components: {} | ||
|
||
paths: | ||
/: | ||
post: | ||
summary: Test request externalValue with relative reference in examples | ||
requestBody: | ||
content: | ||
application/xml: | ||
schema: | ||
type: object | ||
examples: | ||
test-resolved: | ||
summary: Example should resolved to value | ||
externalValue: './external-value.json' | ||
test-no-resolved: | ||
summary: Example shouldn't be resolved to value | ||
value: | ||
type: object | ||
externalValue: './external-value.json' |
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