Added regex testing

This commit is contained in:
Bryce Covert
2019-05-09 21:44:54 -07:00
parent 677a4e3c22
commit 0520e2f0f8
4 changed files with 29 additions and 5 deletions

View File

@@ -40,7 +40,8 @@
:serialize (schema/as-conformer #(or (:ident %) (:db/ident %) %))}
:iso_date {:parse (schema/as-conformer #(time/parse % time/iso-date))
:serialize (schema/as-conformer #(time/unparse % time/iso-date))}
:money {:parse (schema/as-conformer #(if (string? %)
:money {:parse (schema/as-conformer #(if (and (string? %)
(not (str/blank? %)))
(Double/parseDouble %)
%))
:serialize (schema/as-conformer #(if (double? %)