fixing issue with address making it never saveable.
This commit is contained in:
@@ -5,8 +5,10 @@
|
|||||||
(s/def ::street1 (s/nilable string?))
|
(s/def ::street1 (s/nilable string?))
|
||||||
(s/def ::street2 (s/nilable string?))
|
(s/def ::street2 (s/nilable string?))
|
||||||
(s/def ::city (s/nilable string?))
|
(s/def ::city (s/nilable string?))
|
||||||
(s/def ::state (s/nilable (s/and string?
|
(s/def ::state (s/nilable (s/or
|
||||||
#(re-matches #"[a-zA-Z]{2}" %))))
|
:empty (s/and string? #{""})
|
||||||
|
:filled (s/and string?
|
||||||
|
#(re-matches #"[a-zA-Z]{2}" %)))))
|
||||||
(s/def ::zip (s/nilable string?))
|
(s/def ::zip (s/nilable string?))
|
||||||
|
|
||||||
(s/def ::address (s/keys :opt-un [::email
|
(s/def ::address (s/keys :opt-un [::email
|
||||||
|
|||||||
Reference in New Issue
Block a user