code: function saveSchema(modelParam, targetDir, opts = {}) {
    validate.notNil(modelParam, "modelParam is mandatory");
    validate.notNil(targetDir, "targetDir is mandatory");
  
    const yamlSchemaContainers = generateSchema(modelParam, opts);
    return yamlWriter.writeYamlsToFs(yamlSchemaContainers, targetDir, opts);
  }
docs: Generates and saves into specified directory JSON schema files for inclusion in Swagger specifications from given
  Objection.js models
  @param {Model|Model[]} modelParam - model(s) to generate schemas for
  @param {string} targetDir - directory to write generated schemas to. Do not add '/' to the end.
  @param {Options} opts
  @returns {Promise} - promise that is resolved after schemas are written