def validates(version):
 def _validates(cls):
  validators[version] = cls
  if (u'id' in cls.META_SCHEMA):
   meta_schemas[cls.META_SCHEMA[u'id']] = cls
  return cls
 return _validates

def validates ( version ) : def _validates ( cls ) : validators [ version ] = cls if ( u'id' in cls . META_SCHEMA ) : meta_schemas [ cls . META_SCHEMA [ u'id' ] ] = cls return cls return _validates
register the decorated validator for a version of the specification .