forked from go-openapi/spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contributes go-swagger/go-swagger#2113
Fixes ref rebasing when following nested $ref in Paths section Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
- Loading branch information
Showing
9 changed files
with
108 additions
and
60 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 |
---|---|---|
|
@@ -21,3 +21,8 @@ linters: | |
- lll | ||
- gochecknoinits | ||
- gochecknoglobals | ||
- funlen | ||
- godox | ||
- gocognit | ||
- whitespace | ||
- wsl |
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,9 @@ | ||
swagger: "2.0" | ||
info: | ||
version: "1" | ||
title: "nested $ref fixture" | ||
paths: | ||
/dummy: | ||
$ref: ./schemas/api/api.yaml#/paths/~1dummy | ||
/example: | ||
$ref: ./schemas/api/api.yaml#/paths/~1example |
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,19 @@ | ||
swagger: "2.0" | ||
info: | ||
version: "1" | ||
title: "sub api" | ||
paths: | ||
/dummy: | ||
get: | ||
responses: | ||
200: | ||
description: OK | ||
schema: | ||
$ref: ../dummy/dummy.yaml | ||
/example: | ||
get: | ||
responses: | ||
200: | ||
description: OK | ||
schema: | ||
$ref: ../example/example.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,5 @@ | ||
required: | ||
- dummyPayload | ||
properties: | ||
dummyPayload: | ||
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,6 @@ | ||
$schema: http://json-schema.org/draft-07/schema# | ||
required: | ||
- payload | ||
properties: | ||
payload: | ||
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
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