-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(resolver): collect errors in PathItemElement visitor hook (#2805)
This change is specific to OpenAPI 3.1.0 resolution strategy. Errors are now collected, instead of thrown and visitor traversal is not interrupted. Refs #2804
- Loading branch information
Showing
9 changed files
with
379 additions
and
165 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
8 changes: 8 additions & 0 deletions
8
...1-swagger-client/path-item-object/__fixtures__/direct-external-circular/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,8 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": {} | ||
} | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
...1-swagger-client/path-item-object/__fixtures__/direct-internal-circular/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,9 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": {}, | ||
"/path2": {} | ||
} | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...swagger-client/path-item-object/__fixtures__/indirect-external-circular/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,8 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": {} | ||
} | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
...swagger-client/path-item-object/__fixtures__/indirect-internal-circular/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": {}, | ||
"/path2": {}, | ||
"/path3": {} | ||
} | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
...penapi-3-1-swagger-client/path-item-object/__fixtures__/invalid-pointer/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,15 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "invalid-pointer" | ||
}, | ||
"/path2": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
...gies/openapi-3-1-swagger-client/path-item-object/__fixtures__/max-depth/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,8 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": {} | ||
} | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
...3-1-swagger-client/path-item-object/__fixtures__/unresolvable-path-item/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,15 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"paths": { | ||
"/path1": { | ||
"$ref": "#/paths/invalid-pointer" | ||
}, | ||
"/path2": { | ||
"summary": "path item summary", | ||
"description": "path item description", | ||
"get": {} | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.