Don't register shadow schema

It is not really necessary, we can use the
schema var directly.
This commit is contained in:
Andrey Antukh 2025-04-22 17:21:52 +02:00
parent ccbf17106d
commit 151dc352c8
4 changed files with 8 additions and 9 deletions

View file

@ -432,7 +432,7 @@
(let [id (obj/get self "$id")
value (mapv #(shadow-defaults (parser/parse-shadow %)) value)]
(cond
(not (sm/validate [:vector ::ctss/shadow] value))
(not (sm/validate [:vector ctss/schema:shadow] value))
(u/display-not-valid :shadows value)
(not (r/check-permission plugin-id "content:write"))