mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
check uniqueness
This commit is contained in:
parent
bb4641fc93
commit
4181541ae2
@ -8,8 +8,8 @@
|
||||
(not (realm/exists? :contacts :whisper-identity identity)))
|
||||
|
||||
(s/def ::unique-identity unique-identity?)
|
||||
(s/def ::name (s/and ::not-empty-string ::unique-identity))
|
||||
(s/def ::whisper-identity ::not-empty-string)
|
||||
(s/def ::name ::not-empty-string)
|
||||
(s/def ::whisper-identity (s/and ::not-empty-string ::unique-identity))
|
||||
|
||||
(s/def ::contact (s/keys :req-un [::name ::whisper-identity]
|
||||
:opt-un [::phone ::photo-path ::address]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user