hodur-org / hodur-engine

Hodur is a domain modeling approach and collection of libraries to Clojure. By using Hodur you can define your domain model as data, parse and validate it, and then either consume your model via an API or use one of the many plugins to help you achieve mechanical results faster and in a purely functional manner.
MIT License
282 stars 13 forks source link

Add support for tagging with keywords #20

Closed madstap closed 2 years ago

madstap commented 4 years ago

Needed to tag with more information than a simple boolean, specifically to add a prefix for namespaces by tagging instead of in an ad-hoc manner for each plugin.

Won't break anything, but tagging with a keyword precludes using only and except, which might be confusing.

madstap commented 4 years ago

Needed for #18

luchiniatwork commented 4 years ago

This is a real need I've heard from other people before and so far each plugin has taken a separate approach. It might make more sense to have these in plugins instead of being in the core because some plugins don't really care about namespaces while others do (are really picky about these).

Therefore, wouldn't it be better off as an extension to hodur-spec-schema? I also wonder if https://github.com/hodur-org/hodur-spec-schema#influencing-names-with-aliases-and-prefix wouldn't be enough for you.