Skip to content

Instantly share code, notes, and snippets.

@tdavis

tdavis/ex.clj Secret

Created February 11, 2016 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdavis/d21ac8579e59d9f5049e to your computer and use it in GitHub Desktop.
Save tdavis/d21ac8579e59d9f5049e to your computer and use it in GitHub Desktop.
(declare thing)
(schema.core/defrecord Thing
[n :- schema.core/Int
other :- (schema.core/maybe (schema.core/recursive #'thing))])
(def thing Thing)
(schema.core/validate Thing (Thing. 1 nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment