mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 07:36:13 +02:00
✨ Improve profile spec to allow anonymous users.
This commit is contained in:
parent
115ba72572
commit
fe203fe70c
1 changed files with 14 additions and 12 deletions
|
@ -18,23 +18,25 @@
|
||||||
|
|
||||||
;; --- Common Specs
|
;; --- Common Specs
|
||||||
|
|
||||||
(s/def ::id uuid?)
|
(s/def ::id ::us/uuid)
|
||||||
(s/def ::fullname string?)
|
(s/def ::fullname ::us/string)
|
||||||
(s/def ::email ::us/email)
|
(s/def ::email ::us/email)
|
||||||
(s/def ::password string?)
|
(s/def ::password ::us/string)
|
||||||
(s/def ::language string?)
|
(s/def ::language ::us/string)
|
||||||
(s/def ::photo string?)
|
(s/def ::photo ::us/string)
|
||||||
(s/def ::created-at inst?)
|
(s/def ::created-at ::us/inst)
|
||||||
(s/def ::password-1 string?)
|
(s/def ::password-1 ::us/string)
|
||||||
(s/def ::password-2 string?)
|
(s/def ::password-2 ::us/string)
|
||||||
(s/def ::password-old string?)
|
(s/def ::password-old ::us/string)
|
||||||
|
(s/def ::lang (s/nilable ::us/string))
|
||||||
|
|
||||||
(s/def ::profile
|
(s/def ::profile
|
||||||
(s/keys :req-un [::id
|
(s/keys :req-un [::id]
|
||||||
|
:opt-un [::created-at
|
||||||
::fullname
|
::fullname
|
||||||
|
::photo
|
||||||
::email
|
::email
|
||||||
::created-at
|
::lang]))
|
||||||
::photo]))
|
|
||||||
|
|
||||||
;; --- Profile Fetched
|
;; --- Profile Fetched
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue