Beispiel #1
0
class ClearSchemas(Schema):
    amount = fields.Int(required=True, validate=validate.Range(min=1, max=99))
    user = UserField()
Beispiel #2
0
class BanSchemas(Schema):
    user = UserField(required=True)
    delete_days = fields.Int()
Beispiel #3
0
class ReleaseSchemas(Schema):
    user = UserField(required=True)
class InfractionSchemas(Schema):
    user = UserField(required=True)
    rule_id = fields.Int(
        required=True,
        validate=validate.Range(min=0, max=len(Rule.rules()) -
                                1))  #FIXME: enelever -1 si exclusif de base
Beispiel #5
0
class SetchapterSchemas(Schema):
    user = UserField(required=True)
    quest_name = fields.Str(required=True)
    chapter_index = fields.Int(required=True, validate=validate.Range(min=0))
Beispiel #6
0
class GiveSchemas(Schema):
    user = UserField(required=True)
    item_name = fields.Str(required=True)
    quantity = fields.Int(required=True)
Beispiel #7
0
class ResetSchemas(Schema):
    target = UserField()
    pwd = fields.Str(required=True, validate=validate.OneOf((SECURITY_PWD, )))