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,
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}))