-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for issue-1865 - dereferencing files with dots
Co-authored-by: gracekarina <[email protected]> Co-authored-by: frantuma <[email protected]>
- Loading branch information
1 parent
b63dd8f
commit 138687c
Showing
10 changed files
with
81 additions
and
25 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
modules/swagger-parser-v3/src/test/resources/issue-1865/apis/foo.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,24 @@ | ||
#broken-ref/apis/foo.yaml | ||
openapi: 3.0.0 | ||
info: | ||
title: swagger parser bug, worked until 2.0.28 but not since 2.0.29 | ||
version: '1.0' | ||
|
||
paths: | ||
|
||
'/foo': | ||
post: | ||
summary: create foo | ||
description: Create a new foo. | ||
responses: | ||
'200': | ||
description: a Foo | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Foo' | ||
|
||
components: | ||
schemas: | ||
Foo: | ||
$ref: ../models/foo.model.yaml |
3 changes: 3 additions & 0 deletions
3
modules/swagger-parser-v3/src/test/resources/issue-1865/examples/foo.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,3 @@ | ||
# broken-ref/examples/foo.example.yaml | ||
value: | ||
foo: bar |
6 changes: 6 additions & 0 deletions
6
modules/swagger-parser-v3/src/test/resources/issue-1865/models/foo.model.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,6 @@ | ||
#broken-ref/models/foo.model.yaml | ||
title: Foo | ||
type: object | ||
properties: | ||
foo: | ||
type: string |
9 changes: 9 additions & 0 deletions
9
modules/swagger-parser-v3/src/test/resources/issue-1865/openapi30.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,9 @@ | ||
# broken-ref/openapi30.yaml | ||
openapi: 3.0.3 | ||
info: | ||
title: ref chain | ||
version: '1' | ||
|
||
paths: | ||
/foo: | ||
$ref: ./apis/foo.yaml#/paths/~1foo |
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