graphql used for invoices
This commit is contained in:
@@ -9,12 +9,14 @@
|
||||
#(not (str/blank? %))))
|
||||
|
||||
(s/def ::name ::required-identifier)
|
||||
(s/def ::data map?)
|
||||
|
||||
(s/def ::email (s/nilable (s/and string? (s/or :is-email #(re-matches email-regex %)
|
||||
:is-empty #(= % "")))))
|
||||
|
||||
(s/def ::company (s/keys :req-un [::name]
|
||||
:opt-un [::email
|
||||
::data
|
||||
::id]))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user