Re: questions of Prismatic Schema and Org Babel Clojure

2015-12-26 Thread Jason Wolfe
This isn't a schema issue. Without invoking Schema: user> (do (defrecord Foo []) Foo) user.Foo user> (clojure.pprint/pprint (do (defrecord Foo2 []) Foo2)) CompilerException java.lang.RuntimeException: Unable to resolve symbol: Foo2 in this context,

questions of Prismatic Schema and Org Babel Clojure

2015-12-25 Thread Rui Yang
Hi, I tried to use org babel to document my learning of clojure. Trying the following codes in org babel. #+begin_src clojure :results pp (require '[schema.core :as s]) (s/defrecord MyDomainModel [date :- Long ]) (s/validate MyDomainModel (map-> MyDomainModel{:date 123}))