With #128 we added an internal yaml schema checker function in yaml.ts. This is overkill, and should be replaced with an external library (e.g. https://www.npmjs.com/package/yaml-schema-validator).
Note that it would be nice if that library would be to provide good error location in the yaml file when validation fails.