docs: function initModelValidate (args) {
      var controller = this
      var model = this.model
      // if model does not have schema do not add validate controller
      if (!model.schemaData) {
          return
      }
      // get accountId column
      var accountIdColumn = model.columnName('accountId') 
      // set role to authenticated if model requires account id
      var role = args.defaultRole || (accountIdColumn && model.columns[accountIdColumn].null === false ? 'authenticated' : 'all')
      // index inputs
      var input = {
          // validate schema data
          meta: 'query.meta',
      }
      // instance data is in body under model name
      input[model.name] = 'body.'+model.name
      // create path if it does not exist
      if (!this.paths['/validate']) {
          this.paths['/validate'] = {}
      }
      // add POST /validate handler
      this.paths['/validate'].post = [
          {
              before: function (args) {
                  // do validation
                  return beforeValidate(controller, args)
              },
              input: input,
              method: function (args) {
                  // if before didnt have errors data is valid
                  return {valid: true}
              },
              role: role,
              methodName: 'validate',
          },
      ]
  }