YAML validation by parsing