def validator(self, id):
return jsonschema.Draft4Validator(<EOL>{'<STR_LIT>': '<STR_LIT>' % id},<EOL>resolver=self.ref_resolver()<EOL>)<EOL>
Create a validator for the current state of the schema.

        Note: a validator (the resolver it's using) is not thread safe.

        :param id: id of the schema in the list of definition.
        :return: a validator.
        :rtype: :class:`jsonschema.Draft4Validator`