Skip to content

Commit c62284e

Browse files
committed
Bump version, add doc on $ref usage via classpath
1 parent ae20304 commit c62284e

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Clojure JSON Schema Validator & Generator
44

55
```clojure
6-
[luposlip/json-schema "0.2.9"]
6+
[luposlip/json-schema "0.3.0"]
77
```
88

99
A Clojure library for:
@@ -51,6 +51,8 @@ Example usage:
5151
:success)
5252
```
5353

54+
With version 0.3.x you can reuse schemas via the [`$ref` attribute](https://json-schema.org/understanding-json-schema/structuring.html#reuse). See `/test/json-schema/core_test.clj#classpath-ref-resolution` for an example.
55+
5456
Pseudo-example for pipelining (note the reuse of the prepared schema):
5557

5658
```clojure
@@ -175,9 +177,13 @@ If you use `tools.deps` (as opposed to Leiningen), you'll have to copy all depen
175177
176178
To the maintainers of: https://github.com/everit-org/json-schema, on which _validation_ in this Clojure Library is based.
177179
180+
To the contributors:
181+
- @patrkris
182+
- @jurgiskg
183+
178184
## Copyright & License
179185
180-
Copyright (C) 2020 Henrik Mohr
186+
Copyright (C) 2020-2021 Henrik Mohr
181187
182188
Licensed under the Apache License, Version 2.0 (the "License");
183189
you may not use this file except in compliance with the License.

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject luposlip/json-schema "0.2.9"
1+
(defproject luposlip/json-schema "0.3.0"
22
:description "Clojure library for JSON Schema validation and generation - Draft-07 compatible"
33
:url "https://github.com/luposlip/json-schema"
44
:license {:name "Apache License, Version 2.0"

test/json_schema/core_test.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@
142142

143143
(testing "invalid EDN input for referred field via classpath FAILS"
144144
(is (thrown-with-msg?
145-
Exception
146-
#"JSON Validation error"
147-
(json/validate schema invalid-input)))))))
145+
Exception
146+
#"JSON Validation error"
147+
(json/validate schema invalid-input)))))))

0 commit comments

Comments
 (0)