From b0ebdc0eaac0809ad514f8c6ee37e8071ba27bdc Mon Sep 17 00:00:00 2001 From: Zachary Whaley Date: Tue, 20 Jul 2021 19:48:38 -0500 Subject: [PATCH] js-yaml v4 functions are all safe --- src/services/models/ApiInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/models/ApiInfo.ts b/src/services/models/ApiInfo.ts index c002a5fb..d7b9e436 100644 --- a/src/services/models/ApiInfo.ts +++ b/src/services/models/ApiInfo.ts @@ -43,7 +43,7 @@ export class ApiInfoModel implements OpenAPIInfo { if (IS_BROWSER && window.Blob && window.URL && window.URL.createObjectURL) { let specString: string; if (path.extname(this.options.downloadFileName) === '.yaml') { - specString = yaml.safeDump(this.parser.spec); + specString = yaml.dump(this.parser.spec); } else { specString = JSON.stringify(this.parser.spec, null, 2); }