Skip to content

Commit bf3e465

Browse files
committed
Use YAML.load() (now safe by default)
1 parent 57a75fa commit bf3e465

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/lib/util/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function parseContent(filePath: string, fileContent: string) {
8686
if (/.*\.json$/gi.test(filePath)) {
8787
result = JSON.parse(fileContent)
8888
} else if (/.*\.ya?ml$/gi.test(filePath)) {
89-
result = YAML.safeLoad(fileContent)
89+
result = YAML.load(fileContent)
9090
} else {
9191
const msg =
9292
`We currently support "*.json" and "*.yaml | *.yml" file formats for validating swaggers.\n` +

0 commit comments

Comments
 (0)