Skip to content

Commit ef7443a

Browse files
authored
Merge pull request #124 from kleewho/issue_122_validate_yaml_dates
Read yaml files with CORE_SCHEMA
2 parents aa7c506 + b361b12 commit ef7443a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function decodeFile(contents: string, format: string): any {
3535
return JSON5.parse(contents)
3636
case "yml":
3737
case "yaml":
38-
return yaml.safeLoad(contents)
38+
return yaml.safeLoad(contents, {schema: yaml.CORE_SCHEMA})
3939
default:
4040
throw new Error(`unsupported file format ${format}`)
4141
}

0 commit comments

Comments
 (0)