You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,15 @@ It uses the [org.json API](http://stleary.github.io/JSON-java/) (created by Doug
20
20
# When to use this library?
21
21
22
22
Lets assume that you already know what JSON Schema is, and you want to utilize it in a Java application to validate JSON data.
23
-
But - as you may have already discovered - there is also an [other Java implementation][daveclayton/json-schema-validator]
23
+
But - as you may have already discovered - there is also an [other Java implementation][java-json-tools/json-schema-validator]
24
24
of the JSON Schema specification. So here are some advices about which one to use:
25
-
* if you use Jackson to handle JSON in Java code, then [daveclayton/json-schema-validator] is obviously a better choice, since it uses Jackson
25
+
* if you use Jackson to handle JSON in Java code, then [java-json-tools/json-schema-validator] is obviously a better choice, since it uses Jackson
26
26
* if you want to use the [org.json API](http://www.json.org/java/) then this library is the better choice
27
27
* if you need JSON Schema Draft 6 support, then you need this library.
28
28
* if you want to use anything else for handling JSON (like GSON or javax.json), then you are in a little trouble, since
29
29
currently there is no schema validation library backed by these libraries. It means that you will have to parse the JSON
30
30
twice: once for the schema validator, and once for your own processing. In a case like that, this library is probably still
31
-
a better choice, since it seems to be [twice faster](https://github.com/erosb/json-schema-perftest) than the Jackson-based [daveclayton][daveclayton/json-schema-validator] library.
31
+
a better choice, since it seems to be [twice faster](https://github.com/erosb/json-schema-perftest) than the Jackson-based [java-json-tools][java-json-tools/json-schema-validator] library.
32
32
33
33
34
34
## Maven installation
@@ -248,7 +248,7 @@ public class EvenCharNumValidator implements FormatValidator {
248
248
if (subject.length() %2==0) {
249
249
returnOptional.empty();
250
250
} else {
251
-
returnOptional.of(String.format("the length of srtring [%s] is odd", subject));
251
+
returnOptional.of(String.format("the length of string [%s] is odd", subject));
0 commit comments