Re: Clojure spec for domain model

2016-09-09 Thread Alex Miller
You seem to be working pretty hard here. Why don't you just do: (s/def :User/id string?) (s/def :Credit/id number?) The keyword qualifier does not have to map to a loaded namespace. (It does if you want to use namespace aliases, but that doesn't seem necessary here.) On Friday, September 9, 20

Clojure spec for domain model

2016-09-09 Thread Mamun
Hi All, I have different type of model in my domain like User, Credit. I would like to define spec of the model in one clj/cljs but not different clj/cljs file. Because I don't want to create one clj file for per model. On the other hand Clojure namespaces are very similar to Java packages. (