Skip to content

Commit 7f8820a

Browse files
committed
2 parents a003c0f + 0ddfdb7 commit 7f8820a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ It uses the [org.json API](http://stleary.github.io/JSON-java/) (created by Doug
2020
# When to use this library?
2121

2222
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]
2424
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
2626
* if you want to use the [org.json API](http://www.json.org/java/) then this library is the better choice
2727
* if you need JSON Schema Draft 6 support, then you need this library.
2828
* if you want to use anything else for handling JSON (like GSON or javax.json), then you are in a little trouble, since
2929
currently there is no schema validation library backed by these libraries. It means that you will have to parse the JSON
3030
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.
3232

3333

3434
## Maven installation
@@ -248,7 +248,7 @@ public class EvenCharNumValidator implements FormatValidator {
248248
if (subject.length() % 2 == 0) {
249249
return Optional.empty();
250250
} else {
251-
return Optional.of(String.format("the length of srtring [%s] is odd", subject));
251+
return Optional.of(String.format("the length of string [%s] is odd", subject));
252252
}
253253
}
254254

@@ -289,6 +289,6 @@ SchemaLoader schemaLoader = SchemaLoader.builder()
289289
[Travis]: https://travis-ci.org/everit-org/json-schema
290290
[Coveralls.io badge master]: https://coveralls.io/repos/github/everit-org/json-schema/badge.svg?branch=master
291291
[Coveralls.io]: https://coveralls.io/github/everit-org/json-schema?branch=master
292-
[daveclayton/json-schema-validator]: https://github.com/daveclayton/json-schema-validator
292+
[java-json-tools/json-schema-validator]: https://github.com/java-json-tools/json-schema-validator
293293
[draft-zyp-json-schema-04]: https://tools.ietf.org/html/draft-zyp-json-schema-04
294294
[draft-fge-json-schema-validation-00 format]: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-7

0 commit comments

Comments
 (0)