Skip to content

Instantly share code, notes, and snippets.

@zane

zane/core.clj Secret

Created September 12, 2013 13:17
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 zane/e937554d3c00758b9787 to your computer and use it in GitHub Desktop.
Save zane/e937554d3c00758b9787 to your computer and use it in GitHub Desktop.
(let [mapper (ObjectMapper.)
reader (jio/reader "schema.json")
node (.readTree mapper reader)
schema-factory-builder (JsonSchemaFactory/newBuilder)
schema-factory (.freeze schema-factory-builder)]
(.getJsonSchema schema-factory node))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment