class ClientNYMOperation(MessageValidator): schema = ( (TXN_TYPE, ConstantField(NYM)), (ALIAS, LimitedLengthStringField(max_length=ALIAS_FIELD_LIMIT, optional=True)), (VERKEY, VerkeyField(optional=True, nullable=True)), (TARGET_NYM, DestNymField()), (ROLE, RoleField(optional=True)), # TODO: validate role using ChooseField, # do roles list expandable form outer context )
class ClientNYMOperation(MessageValidator): schema = ( (TXN_TYPE, ConstantField(NYM)), (ALIAS, NonEmptyStringField(optional=True)), (VERKEY, VerkeyField(optional=True)), (TARGET_NYM, DestNymField()), (ROLE, RoleField(optional=True)), # TODO: validate role using ChooseField, # do roles list expandable form outer context ) schema_is_strict = False