0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-11 01:10:28 -05:00

Improve profile spec to allow anonymous users.

This commit is contained in:
Andrey Antukh 2020-04-07 16:39:50 +02:00
parent 115ba72572
commit fe203fe70c

View file

@ -18,23 +18,25 @@
;; --- Common Specs
(s/def ::id uuid?)
(s/def ::fullname string?)
(s/def ::id ::us/uuid)
(s/def ::fullname ::us/string)
(s/def ::email ::us/email)
(s/def ::password string?)
(s/def ::language string?)
(s/def ::photo string?)
(s/def ::created-at inst?)
(s/def ::password-1 string?)
(s/def ::password-2 string?)
(s/def ::password-old string?)
(s/def ::password ::us/string)
(s/def ::language ::us/string)
(s/def ::photo ::us/string)
(s/def ::created-at ::us/inst)
(s/def ::password-1 ::us/string)
(s/def ::password-2 ::us/string)
(s/def ::password-old ::us/string)
(s/def ::lang (s/nilable ::us/string))
(s/def ::profile
(s/keys :req-un [::id
(s/keys :req-un [::id]
:opt-un [::created-at
::fullname
::photo
::email
::created-at
::photo]))
::lang]))
;; --- Profile Fetched