♻️ 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:
Andrey Antukh 2026-08-06 16:36:33 +00:00
parent 0702363b5c
commit 1548748aed

View File

@ -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]