can set up multiple locations

This commit is contained in:
Bryce Covert
2018-06-15 12:32:40 -07:00
parent f9c0e55b01
commit b06a6651ca
7 changed files with 88 additions and 55 deletions

View File

@@ -10,6 +10,9 @@
(s/def ::name ::shared/required-identifier)
(s/def ::address ::address/address)
(s/def ::location string?)
(s/def ::locations (s/coll-of ::location))
(s/def ::email (s/nilable (s/and string? (s/or :is-email #(re-matches email-regex %)
:is-empty #(= % "")))))
@@ -17,6 +20,7 @@
(s/def ::company (s/keys :req-un [::name]
:opt-un [::email
::address
::locations
::id]))