 main() if not module.parent
 
 exports.validate = validateConfig
+exports.validateObject = validateConfigObject
 exports.parse = parseConfig
 exports.parseOnly = parse
 exports.load = loadConfig

    errors.push err

  return errors

estimateRates = (cfg) ->
  rates = {}

  parsed = parse str
  return loadConfig parsed

validateConfigObject = (parsed, options) ->
  tv4 = require 'tv4'
  tv4.addSchema schemas.roleconfig.id, schemas.roleconfig
  tv4.addSchema schemas.config.id, schemas.config

  options.allowKeys = [] if not options.allowKeys

