-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1482 from volkodava/fix-nested-defs-in-subfolder
fixed bug related to nested definitions within subfolder
- Loading branch information
Showing
14 changed files
with
158 additions
and
1 deletion.
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
10 changes: 10 additions & 0 deletions
10
modules/swagger-parser-v3/src/test/resources/nested-references-2/main.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,10 @@ | ||
--- | ||
openapi: "3.0.0" | ||
info: | ||
title: test | ||
version: '0.0.0' | ||
paths: {} | ||
components: | ||
schemas: | ||
GreetingResponse: | ||
$ref: "./schemas/greeting-response.yaml" |
5 changes: 5 additions & 0 deletions
5
...es/swagger-parser-v3/src/test/resources/nested-references-2/schemas/greeting-message.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 @@ | ||
type: object | ||
properties: | ||
Text: | ||
description: Text message | ||
type: string |
4 changes: 4 additions & 0 deletions
4
...s/swagger-parser-v3/src/test/resources/nested-references-2/schemas/greeting-response.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,4 @@ | ||
type: object | ||
properties: | ||
GreetingMessage: | ||
$ref: ./shared-defs.yaml#/components/schemas/GreetingMessage |
10 changes: 10 additions & 0 deletions
10
modules/swagger-parser-v3/src/test/resources/nested-references-2/schemas/shared-defs.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,10 @@ | ||
--- | ||
openapi: "3.0.0" | ||
info: | ||
title: shared test | ||
version: '0.0.0' | ||
paths: { } | ||
components: | ||
schemas: | ||
GreetingMessage: | ||
$ref: ./greeting-message.yaml |
5 changes: 5 additions & 0 deletions
5
modules/swagger-parser-v3/src/test/resources/nested-references-3/greeting-message.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 @@ | ||
type: object | ||
properties: | ||
Text: | ||
description: Text message | ||
type: string |
4 changes: 4 additions & 0 deletions
4
modules/swagger-parser-v3/src/test/resources/nested-references-3/greeting-response.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,4 @@ | ||
type: object | ||
properties: | ||
GreetingMessage: | ||
$ref: ./shared-defs.yaml#/components/schemas/GreetingMessage |
10 changes: 10 additions & 0 deletions
10
modules/swagger-parser-v3/src/test/resources/nested-references-3/main.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,10 @@ | ||
--- | ||
openapi: "3.0.0" | ||
info: | ||
title: test | ||
version: '0.0.0' | ||
paths: {} | ||
components: | ||
schemas: | ||
GreetingResponse: | ||
$ref: "./greeting-response.yaml" |
10 changes: 10 additions & 0 deletions
10
modules/swagger-parser-v3/src/test/resources/nested-references-3/shared-defs.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,10 @@ | ||
--- | ||
openapi: "3.0.0" | ||
info: | ||
title: shared test | ||
version: '0.0.0' | ||
paths: { } | ||
components: | ||
schemas: | ||
GreetingMessage: | ||
$ref: ./greeting-message.yaml |
10 changes: 10 additions & 0 deletions
10
modules/swagger-parser-v3/src/test/resources/nested-references-4/main.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,10 @@ | ||
--- | ||
openapi: "3.0.0" | ||
info: | ||
title: test | ||
version: '0.0.0' | ||
paths: {} | ||
components: | ||
schemas: | ||
GreetingResponse: | ||
$ref: "./schemas/sub/greeting-response.yaml" |
10 changes: 10 additions & 0 deletions
10
modules/swagger-parser-v3/src/test/resources/nested-references-4/schemas/shared-defs.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,10 @@ | ||
--- | ||
openapi: "3.0.0" | ||
info: | ||
title: shared test | ||
version: '0.0.0' | ||
paths: { } | ||
components: | ||
schemas: | ||
GreetingMessage: | ||
$ref: ./sub/greeting-message.yaml |
5 changes: 5 additions & 0 deletions
5
...wagger-parser-v3/src/test/resources/nested-references-4/schemas/sub/greeting-message.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 @@ | ||
type: object | ||
properties: | ||
Text: | ||
description: Text message | ||
type: string |
4 changes: 4 additions & 0 deletions
4
...agger-parser-v3/src/test/resources/nested-references-4/schemas/sub/greeting-response.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,4 @@ | ||
type: object | ||
properties: | ||
GreetingMessage: | ||
$ref: ../shared-defs.yaml#/components/schemas/GreetingMessage |