Skip to content

Commit

Permalink
fix(util/yaml): increase max alias count (#31758)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Oct 2, 2024
1 parent 95f4cfa commit 084b90d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function parseYaml<ResT = unknown>(

const results: ResT[] = [];
for (const rawDocument of rawDocuments) {
const document = rawDocument.toJS();
const document = rawDocument.toJS({ maxAliasCount: 10000 });

const errors = rawDocument.errors;
// handle YAML parse errors
Expand Down Expand Up @@ -127,7 +127,7 @@ export function parseSingleYaml<ResT = unknown>(
throw new AggregateError(rawDocument.errors, 'Failed to parse YAML file');
}

const document = rawDocument.toJS();
const document = rawDocument.toJS({ maxAliasCount: 10000 });
const schema = options?.customSchema;
if (!schema) {
return document as ResT;
Expand Down

0 comments on commit 084b90d

Please sign in to comment.