def validates(version):
def _validates(cls):<EOL><INDENT>validators[version] = cls<EOL>meta_schema_id = cls.ID_OF(cls.META_SCHEMA)<EOL>if meta_schema_id:<EOL><INDENT>meta_schemas[meta_schema_id] = cls<EOL><DEDENT>return cls<EOL><DEDENT>return _validates<EOL>
Register the decorated validator for a ``version`` of the specification.

Registered validators and their meta schemas will be considered when
parsing ``$schema`` properties' URIs.

Arguments:

    version (str):

        An identifier to use as the version's name

Returns:

    callable: a class decorator to decorate the validator with the version