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); }