You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like :zen/tags should be validated in zen.v2-validation/zen.validation and zen.store/validate-resource should just call validate function without handling :zen/tags explicitly
[{:type"require",
:message":foo is required",
:path [:foo],
:schema [myns/tag :require],
:resource myns/sym}
{:message"Expected symbol 'myns/tag tagged with '#{zen/tag}, but only #{zen/schema}",
:type"symbol",
:path [:zen/tags0],
:schema [myns/tag :property:zen/tags:every0:tags],
:resource myns/sym}]
But (zen.core/validate ztx #{'zen/schema} (zen.core/get-symbol ztx 'myns/sym)) will show only one error:
{:errors
[{:message"Expected symbol 'myns/tag tagged with '#{zen/tag}, but only #{zen/schema}",
:type"symbol",
:path [:zen/tags0],
:schema [zen/schema :property:zen/tags:every0:tags]}],
:warnings [],
:effects []}
Urgency: very low
The text was updated successfully, but these errors were encountered:
Zen symbol validation can not be reproduced with
zen.validation
orzen.v2-validation
code::zen/tags
are only validated on load here:zen/src/zen/store.clj
Line 138 in 19e6508
zen/src/zen/store.clj
Lines 54 to 55 in 19e6508
zen/src/zen/store.clj
Line 64 in 19e6508
It looks like :zen/tags should be validated in
zen.v2-validation
/zen.validation
andzen.store/validate-resource
should just callvalidate
function without handling:zen/tags
explicitlySteps to reproduce:
(zen.core/errors ztx)
will show 2 errors(zen.core/validate ztx #{'zen/schema} (zen.core/get-symbol ztx 'myns/sym))
will show only one error:Urgency: very low
The text was updated successfully, but these errors were encountered: