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 fee14d9349 - Show all commits

View file

@ -24,6 +24,7 @@ def iso_date(field, value, error):
def valid_money_amount(field, value, error):
try:
# value is string, check formatting by parsing as float
float(value)
return True
except (ValueError, TypeError):