def _process_schema(self, schema_dict, validators):
schema_flat = util.flatten(schema_dict)<EOL>for key, expression in schema_flat.items():<EOL><INDENT>try:<EOL><INDENT>schema_flat[key] = syntax.parse(expression, validators)<EOL><DEDENT>except SyntaxError as e:<EOL><INDENT>error = str(e) + '<STR_LIT>' % key<EOL>raise SyntaxError(error)<EOL><DEDENT><DEDENT>return schema_flat<EOL>
Go through a schema and construct validators.