def process_config(config, schema=None, set_defaults=True):
 if (schema is None):
  schema = get_schema()
 resolver = RefResolver.from_schema(schema)
 validator = SchemaValidator(schema, resolver=resolver, format_checker=format_checker)
 if set_defaults:
  validator.VALIDATORS[u'properties'] = validate_properties_w_defaults
 try:
  errors = list(validator.iter_errors(config))
 finally:
  validator.VALIDATORS[u'properties'] = jsonschema.Draft4Validator.VALIDATORS[u'properties']
 for e in errors:
  set_error_message(e)
  e.json_pointer = (u'/' + u'/'.join(map(str, e.path)))
 return errors

def process_config ( config , schema = None , set_defaults = True ) : if ( schema is None ) : schema = get_schema ( ) resolver = RefResolver . from_schema ( schema ) validator = SchemaValidator ( schema , resolver = resolver , format_checker = format_checker ) if set_defaults : validator . VALIDATORS [ u'properties' ] = validate_properties_w_defaults try : errors = list ( validator . iter_errors ( config ) ) finally : validator . VALIDATORS [ u'properties' ] = jsonschema . Draft4Validator . VALIDATORS [ u'properties' ] for e in errors : set_error_message ( e ) e . json_pointer = ( u'/' + u'/' . join ( map ( str , e . path ) ) ) return errors
validates the config .