|
|
@ -47,7 +47,7 @@
|
|
|
|
(field form-def field-id req
|
|
|
|
(field form-def field-id req
|
|
|
|
(get-in req [:params field-id])))
|
|
|
|
(get-in req [:params field-id])))
|
|
|
|
([form-def field-id req field-value]
|
|
|
|
([form-def field-id req field-value]
|
|
|
|
{:pre [(spec/valid? ::form form-def)]}
|
|
|
|
{:pre [(spec/valid? ::form form-def)]}
|
|
|
|
(let [field-def (get-in form-def [:fields field-id])
|
|
|
|
(let [field-def (get-in form-def [:fields field-id])
|
|
|
|
{:keys [label required] spec-key :spec} field-def]
|
|
|
|
{:keys [label required] spec-key :spec} field-def]
|
|
|
|
(list (when-not (field-valid? field-value spec-key req)
|
|
|
|
(list (when-not (field-valid? field-value spec-key req)
|
|
|
|