mirror of
https://github.com/penpot/penpot.git
synced 2026-08-07 13:29:07 +00:00
♻️ Reuse organization schema in create-organization-invitation
Replace the inline organization map in schema:create-organization-invitation with cto/schema:organization-with-avatar, eliminating schema duplication and fixing mismatched validation rules for :logo and :sso-active fields. AI-assisted-by: mimo-v2.5
This commit is contained in:
parent
0702363b5c
commit
1548748aed
@ -108,14 +108,7 @@
|
||||
(def ^:private schema:create-organization-invitation
|
||||
[:map {:title "params:create-organization-invitation"}
|
||||
[::rpc/profile-id ::sm/uuid]
|
||||
[:organization
|
||||
[:map
|
||||
[:id ::sm/uuid]
|
||||
[:name :string]
|
||||
[:initials [:maybe :string]]
|
||||
[:logo ::sm/uri]
|
||||
[:avatar-bg-url [:maybe ::sm/uri]]
|
||||
[:sso-active [:maybe ::sm/boolean]]]]
|
||||
[:organization cto/schema:organization-with-avatar]
|
||||
[:profile
|
||||
[:map
|
||||
[:id ::sm/uuid]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user