mirror of
https://github.com/status-im/status-react.git
synced 2025-01-12 12:04:52 +00:00
check uniqueness
Former-commit-id: 4181541ae268cb5c427209ac51a90c3b16584088
This commit is contained in:
parent
fe33e694b7
commit
cbb56e499c
@ -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