Skip to content

Commit

Permalink
fix(cli): Increase max recursive depth allowed during example validat…
Browse files Browse the repository at this point in the history
…ion. (#5237)

* Increase `MAX_RECURSION_DEPTH` from 16 -> 64.

* Update changelog.

* chore: update changelog

* amend to 128

---------

Co-authored-by: eyw520 <[email protected]>
  • Loading branch information
eyw520 and eyw520 authored Nov 21, 2024
1 parent 916cf9a commit 8f00632
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fern/pages/changelogs/cli/2024-11-21.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 0.45.0-rc50
**`(fix):`** Increase max recursive depth allowed for example validation.


8 changes: 8 additions & 0 deletions packages/cli/cli/versions.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
- changelogEntry:
- summary: |
Increase max recursive depth allowed for example validation.
type: fix
irVersion: 53
version: 0.45.0-rc50

- changelogEntry:
- summary: |
Add 'list' to reserved keywords for use in PHP generator.
type: fix
irVersion: 53
version: 0.45.0-rc49

- changelogEntry:
- summary: |
OAuth Client Credential Auth Scheme now supports the ability to optionally
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const UUID_REGEX = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA

const RFC_3339_DATE_REGEX = /^\d{4}-\d{2}-\d{2}$/;

const MAX_RECURSION_DEPTH = 16;
const MAX_RECURSION_DEPTH = 128;

export function validateTypeReferenceExample({
rawTypeReference,
Expand Down

0 comments on commit 8f00632

Please sign in to comment.