Skip to content

Commit

Permalink
using yaml CORE_SCHEMA instead of DEFAULT_SCHEMA (usebruno#3303)
Browse files Browse the repository at this point in the history
Co-authored-by: Anusree Subash <[email protected]>
  • Loading branch information
anusreesubash and anusree-bruno authored Oct 14, 2024
1 parent 3ef7df5 commit a880e03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const readFile = (files) => {
} catch (jsonError) {
// not a valid JSOn, try yaml
try {
const parsedData = jsyaml.load(e.target.result);
const parsedData = jsyaml.load(e.target.result, { schema: jsyaml.CORE_SCHEMA });
resolve(parsedData);
} catch (yamlError) {
console.error('Error parsing the file :', jsonError, yamlError);
Expand Down

0 comments on commit a880e03

Please sign in to comment.