class ConstraintEntityField(MessageValidator): schema = ( (CONSTRAINT_ID, ChooseField(values=ConstraintsEnum.values())), (ROLE, RoleField()), (SIG_COUNT, NonNegativeNumberField()), (NEED_TO_BE_OWNER, BooleanField(optional=True)), (METADATA, AnyMapField(optional=True)) )
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