function isValidYaml(yamlString) {
  try {
    yaml.load(yamlString);
  } catch (e) {
    // for Sequelize validators, we need to throw an error