def validates(version):

    def _validates(cls):
        validators[version] = cls
        if "id" in cls.META_SCHEMA:
            meta_schemas[cls.META_SCHEMA["id"]] = cls
        return cls
    return _validates
Register the decorated validator for a ``version`` of the specification.
dataset/ETHPy150Open danielyule/hearthbreaker/jsonschema/validators.py/validates