validation endpoint implementation #7

Merged
tux merged 19 commits from experiments-cerberus into master 2021-01-05 14:34:02 +01:00
Showing only changes of commit 5154646ca2 - Show all commits

View file

@ -76,6 +76,7 @@ schema_membership={
'check_with': valid_money_amount},
'status': {
'type': 'string',
'required': True,
'allowed': ['V', 'E', 'F']},
'von': {
'type': 'string',
@ -103,9 +104,11 @@ schema_base={
'type': 'string'},
'email': {
'type': 'string',
'required': True,
'regex': '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'},
'fullname': {
'type': 'string'},
'type': 'string',
'required': True},
'nickname': {
'type': 'string'},
'pgp-key': {
@ -125,9 +128,11 @@ schema = {
'schema': schema_base},
'id': {
'type': 'string',
'required': True,
'regex': '^[a-f0-9]{5}$'},
'timestamp': {
'type': 'string'}
'type': 'string',
'required': True}
}
v = Validator()