Name: scjsv
Owner: Metosin
Description: Simple JSON-Schema validator for Clojure
Created: 2015-04-04 10:46:43.0
Updated: 2018-05-23 10:42:19.0
Pushed: 2018-04-18 14:41:10.0
Homepage: null
Size: 41
Language: Clojure
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Simple Clojure JSON-Schema Validator - on top of java-json-tools/json-schema-validator.
validator
creates a Clojure data structure validator against the given JSON Schema.json-validator
created a JSON string validator against the given JSON Schema.uire '[scjsv.core :as v])
schema {:$schema "http://json-schema.org/draft-04/schema#"
:type "object"
:properties {:id {:type "integer"}}
:required [:id]})
validate (v/validator schema))
idate {:id 1})
l
idate {})
:domain "validation"
:instance {:pointer ""}
:keyword "required"
:level "error"
:message "object has missing required properties ([\"id\"])"
:missing ["id"]
:required ["id"]
:schema {:loadingURI "#" :pointer ""}})
Copyright © 2015-2018 Metosin Oy
Distributed under the Eclipse Public License, the same as Clojure.