fix formatting
This commit is contained in:
parent
619fd089e3
commit
19f125f542
1 changed files with 24 additions and 23 deletions
|
@ -3,8 +3,9 @@
|
|||
from cerberus import Validator
|
||||
from validation_functions import *
|
||||
|
||||
|
||||
def validate(entity):
|
||||
schema_fin={
|
||||
schema_fin = {
|
||||
'bic': {
|
||||
'type': 'string',
|
||||
'required': True,
|
||||
|
@ -21,10 +22,10 @@ def validate(entity):
|
|||
'scan-sepa-mandate': {'type': 'string'},
|
||||
'holder': {'type': 'string'}}
|
||||
|
||||
schema_membership={
|
||||
schema_membership = {
|
||||
'bis': {
|
||||
'type': 'string',
|
||||
'oneof': [{'check_with': iso_date},{'empty': True}]},
|
||||
'oneof': [{'check_with': iso_date}, {'empty': True}]},
|
||||
'mitgliedsbeitrag': {
|
||||
'type': 'string',
|
||||
'check_with': valid_money_amount},
|
||||
|
@ -44,7 +45,7 @@ def validate(entity):
|
|||
'required': True,
|
||||
'check_with': iso_date}}
|
||||
|
||||
schema_base={
|
||||
schema_base = {
|
||||
'address_code': {
|
||||
'type': 'string'},
|
||||
'address_country': {
|
||||
|
|
Loading…
Reference in a new issue