-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): recursive type checking exceeding max call stack. (#5184)
* fix(cli): recursive type checking exceeding max call stack. * Enforce depth assignment instead of fallback to default value. * Minor cleanup. * Update Postman snapshots. * Update PHP SDK snapshots. * Update Ruby snapshots. * Update ts-express snapshots. * Update ts-sdk snapshots. * Update c sharp snapshots. * Update ts-sdk snapshots. * fix --------- Co-authored-by: dsinghvi <deep@usebirch.com>
- Loading branch information
Showing
620 changed files
with
26,925 additions
and
1,548 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...valid-example-endpoint-call/__test__/fixtures/endpoint-recursive-types/definition/api.yml
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 @@ | ||
name: endpoint-recursive | ||
auth: bearer | ||
default-environment: Production |
39 changes: 39 additions & 0 deletions
39
...example-endpoint-call/__test__/fixtures/endpoint-recursive-types/definition/recursive.yml
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,39 @@ | ||
types: | ||
RecursiveResponse: | ||
type: list<Node> | ||
Node: | ||
discriminated: false | ||
union: | ||
- type: Node | ||
- type: Node | ||
- type: Node | ||
- type: Node | ||
- type: Node | ||
- type: Terminate | ||
Terminate: | ||
properties: | ||
end: string | ||
|
||
|
||
service: | ||
auth: false | ||
base-path: "" | ||
endpoints: | ||
recursiveGet: | ||
method: GET | ||
path: /recursive | ||
request: | ||
name: RecursiveRequest | ||
body: | ||
properties: | ||
query: string | ||
response: | ||
type: RecursiveResponse | ||
examples: | ||
- name: "Example Recursion" | ||
request: | ||
query: "foo" | ||
response: | ||
body: | ||
- end: "bar" | ||
|
1 change: 1 addition & 0 deletions
1
...les/valid-example-endpoint-call/__test__/fixtures/endpoint-recursive-types/generators.yml
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 @@ | ||
{} |
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
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
Oops, something went wrong.