-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(reference): add support for OAS 3.1 Path Item dereference
Closes #458
- Loading branch information
Showing
46 changed files
with
663 additions
and
21 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
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
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
17 changes: 17 additions & 0 deletions
17
...ence/strategies/openapi-3-1/path-item-object/fixtures/additional-fields/dereferenced.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"summary": "path1 item summary", | ||
"description": "path item description", | ||
"get": {} | ||
}, | ||
"/path2": { | ||
"summary": "path2 item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
.../dereference/strategies/openapi-3-1/path-item-object/fixtures/additional-fields/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "#/paths/~1path2", | ||
"summary": "path1 item summary" | ||
}, | ||
"/path2": { | ||
"summary": "path2 item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ference/strategies/openapi-3-1/path-item-object/fixtures/direct-external-circular/ex.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$ref": "./root.json#/paths/~1path1" | ||
} |
8 changes: 8 additions & 0 deletions
8
...rence/strategies/openapi-3-1/path-item-object/fixtures/direct-external-circular/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "./ex.json" | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...rence/strategies/openapi-3-1/path-item-object/fixtures/direct-internal-circular/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "#/paths/~1path2" | ||
}, | ||
"/path2": { | ||
"$ref": "#/paths/~1path1" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
.../strategies/openapi-3-1/path-item-object/fixtures/external-indirections/dereferenced.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} | ||
} | ||
] |
3 changes: 3 additions & 0 deletions
3
...reference/strategies/openapi-3-1/path-item-object/fixtures/external-indirections/ex1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$ref": "./ex2.json#/~1path3" | ||
} |
7 changes: 7 additions & 0 deletions
7
...reference/strategies/openapi-3-1/path-item-object/fixtures/external-indirections/ex2.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"/path3": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...eference/strategies/openapi-3-1/path-item-object/fixtures/external-indirections/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "./ex1.json" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...eference/strategies/openapi-3-1/path-item-object/fixtures/external-only/dereferenced.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...e/test/dereference/strategies/openapi-3-1/path-item-object/fixtures/external-only/ex.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"/path2": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...test/dereference/strategies/openapi-3-1/path-item-object/fixtures/external-only/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "./ex.json#/~1path2" | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...erence/strategies/openapi-3-1/path-item-object/fixtures/ignore-external/dereferenced.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "./ex.json#/~1path2" | ||
} | ||
} | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...test/dereference/strategies/openapi-3-1/path-item-object/fixtures/ignore-external/ex.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"/path2": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...st/dereference/strategies/openapi-3-1/path-item-object/fixtures/ignore-external/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "./ex.json#/~1path2" | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ence/strategies/openapi-3-1/path-item-object/fixtures/indirect-external-circular/ex1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$ref": "./ex2.json" | ||
} |
3 changes: 3 additions & 0 deletions
3
...ence/strategies/openapi-3-1/path-item-object/fixtures/indirect-external-circular/ex2.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$ref": "./root.json#/paths/~1path1" | ||
} |
8 changes: 8 additions & 0 deletions
8
...nce/strategies/openapi-3-1/path-item-object/fixtures/indirect-external-circular/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "./ex1.json" | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...nce/strategies/openapi-3-1/path-item-object/fixtures/indirect-internal-circular/root.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "#/paths/~1path2" | ||
}, | ||
"/path2": { | ||
"$ref": "#/paths/~1path3" | ||
}, | ||
"/path3": { | ||
"$ref": "#/paths/~1path1" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ence/strategies/openapi-3-1/path-item-object/fixtures/internal-external/dereferenced.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
}, | ||
"/path3": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
}, | ||
"/path4": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...st/dereference/strategies/openapi-3-1/path-item-object/fixtures/internal-external/ex.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"/path2": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} |
Oops, something went wrong.