Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 589 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 589 Bytes

json-schema tools

Currently contains only a very minimal JSON schema validator using cheshire to parse JSON. Supportes linked schemas with $ref and allows user to specify how linked URIs are resolved.

Clojars Project

Usage

(ns my.app
  (:require [webjure.json-schema.validator :refer [validate]]
            [cheshire.core :as cheshire]))

;;; then in some function
(validate (cheshire/parse-string json-schema)
          (cheshire/parse-string json-data))