mirror of
https://github.com/penpot/penpot.git
synced 2026-08-07 21:38:48 +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
|
(def ^:private schema:create-organization-invitation
|
||||||
[:map {:title "params:create-organization-invitation"}
|
[:map {:title "params:create-organization-invitation"}
|
||||||
[::rpc/profile-id ::sm/uuid]
|
[::rpc/profile-id ::sm/uuid]
|
||||||
[:organization
|
[:organization cto/schema:organization-with-avatar]
|
||||||
[:map
|
|
||||||
[:id ::sm/uuid]
|
|
||||||
[:name :string]
|
|
||||||
[:initials [:maybe :string]]
|
|
||||||
[:logo ::sm/uri]
|
|
||||||
[:avatar-bg-url [:maybe ::sm/uri]]
|
|
||||||
[:sso-active [:maybe ::sm/boolean]]]]
|
|
||||||
[:profile
|
[:profile
|
||||||
[:map
|
[:map
|
||||||
[:id ::sm/uuid]
|
[:id ::sm/uuid]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user