Created
February 23, 2023 15:21
-
-
Save cou929/9d0402301d9be9aefb6ce3a5bac0d3b4 to your computer and use it in GitHub Desktop.
unexpected behavior of swagger-cli
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
post: | |
responses: | |
201: | |
description: test | |
content: | |
application/json: | |
schema: | |
$ref: ref2.yaml | |
description: the order of this description directive changes between versions |
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
openapi: 3.0.3 | |
info: | |
title: Test | |
version: 1.0.0 | |
paths: | |
/foo: | |
$ref: foo.yaml | |
/bar: | |
$ref: bar.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
post: | |
responses: | |
201: | |
$ref: ref1.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
description: test | |
content: | |
application/json: | |
schema: | |
type: object | |
required: | |
- test_param | |
properties: | |
test_param: | |
$ref: ref2.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
type: object | |
required: | |
- test | |
properties: | |
test: | |
type: integer | |
example: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment