Ejemplo n.º 1
0
class ClaimDefField(MessageValidator):
    schema = (
        (PRIMARY, AnyMapField()),
        (REVOCATION, AnyMapField(optional=True)),
    )
Ejemplo n.º 2
0
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)))