code: function validate (file, options) {
    api.validate(file, options)
      .then(() => {
        console.log(file, "is valid");
      })
      .catch(errorHandler);
  }
docs: Validates an API definition against the Swagger/OpenAPI schema and spec
  
  @param {string} file - The path of the file to validate
  @param {object} options - Validation options
  @param {boolean} options.schema - Whether to validate against the Swagger/OpenAPI schema
  @param {boolean} options.spec - Whether to validate against the Swagger/OpenAPI specification