diff --git a/common/src/app/common/types/plugins.cljc b/common/src/app/common/types/plugins.cljc index b582da3583..e2188d3585 100644 --- a/common/src/app/common/types/plugins.cljc +++ b/common/src/app/common/types/plugins.cljc @@ -27,7 +27,7 @@ schema:string schema:string]]) -(def ^:private schema:registry-entry +(def schema:registry-entry [:map [:plugin-id :string] [:name :string] diff --git a/frontend/src/app/plugins/register.cljs b/frontend/src/app/plugins/register.cljs index c7865eb6cc..aba49133d8 100644 --- a/frontend/src/app/plugins/register.cljs +++ b/frontend/src/app/plugins/register.cljs @@ -71,9 +71,9 @@ :code code :icon icon :permissions (into #{} (map str) permissions)})] - (if (sm/validate ::ctp/registry-entry manifest) + (if (sm/validate ctp/schema:registry-entry manifest) manifest - (.error js/console (clj->js (sm/explain ::ctp/registry-entry manifest)))))) + (.error js/console (clj->js (sm/explain ctp/schema:registry-entry manifest)))))) (defn save-to-store []