Skip to content

Commit d3d342d

Browse files
committed
Use YAML 1.1 for now...
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 8761a8f commit d3d342d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/swagger-schema-resolver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ export class SwaggerSchemaResolver {
115115
try {
116116
return JSON.parse(file);
117117
} catch {
118-
return YAML.parse(file);
118+
// [TODO] Update to YAML 1.2
119+
return YAML.parse(file, { version: "1.1" });
119120
}
120121
}
121122

0 commit comments

Comments
 (0)