def validate_host_mapping(host_mapping):
 schema = {'$schema': 'http://json-schema.org/draft-04/schema#', 'type': 'object', 'additionalProperties': 'true'}
 v = Draft4Validator(schema, format_checker=FormatChecker())
 v.validate(host_mapping)

def validate_host_mapping ( host_mapping ) : schema = { '$schema' : 'http://json-schema.org/draft-04/schema#' , 'type' : 'object' , 'additionalProperties' : 'true' } v = Draft4Validator ( schema , format_checker = FormatChecker ( ) ) v . validate ( host_mapping )
validate a provided host mapping .