zen-lang / zen

Library for model driven systems
116 stars 12 forks source link

:zen/tags validation logic hardcoded into zen.store/validate-resource #35

Open KGOH opened 2 years ago

KGOH commented 2 years ago

Zen symbol validation can not be reproduced with zen.validation or zen.v2-validation code: :zen/tags are only validated on load here: https://github.com/zen-lang/zen/blob/19e6508e796b5c2c2d979bc12650b358a66aa5c7/src/zen/store.clj#L138 https://github.com/zen-lang/zen/blob/19e6508e796b5c2c2d979bc12650b358a66aa5c7/src/zen/store.clj#L54-L55 https://github.com/zen-lang/zen/blob/19e6508e796b5c2c2d979bc12650b358a66aa5c7/src/zen/store.clj#L64

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

Steps to reproduce:

Urgency: very low