-
-
Save zane/e937554d3c00758b9787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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