Skip to content

Commit c223365

Browse files
authored
fixed some small typos
1 parent a61c6a6 commit c223365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Since version `1.4.0` it is possible to print the `ValidationException` instance
203203
JSON-formatted failure reports. The `ValidationException#toJSON()` method returns a `JSONObject` instance with the
204204
following keys:
205205

206-
* `"message"`: the programmer-friendly exception message (desription of the validation failure)
206+
* `"message"`: the programmer-friendly exception message (description of the validation failure)
207207
* `"keyword"`: the JSON Schema keyword which was violated
208208
* `"pointerToViolation"`: a JSON Pointer denoting the path from the input document root to its fragment which caused
209209
the validation failure
@@ -295,7 +295,7 @@ configurable, due to some reported regressions.
295295

296296
## readOnly and writeOnly context
297297

298-
The library supports the `readOnly` and `writeOnly` keywords which first appeared in Draft 7. If you want to utilize this feature, then before validation you need to tell the vaildator if the
298+
The library supports the `readOnly` and `writeOnly` keywords which first appeared in Draft 7. If you want to utilize this feature, then before validation you need to tell the validator if the
299299
validation happens in read or write context. Example:
300300

301301
schema.json:
@@ -388,14 +388,14 @@ SchemaLoader schemaLoader = SchemaLoader.builder()
388388
.addFormatValidator("evenlength", new EvenCharNumValidator()) // the EvenCharNumValidator gets bound to the "evenlength" keyword
389389
.build();
390390
Schema schema = schemaLoader.load().build(); // the schema is created using the above created configuration
391-
schema.validate(jsonDcoument); // the document validation happens here
391+
schema.validate(jsonDocument); // the document validation happens here
392392
```
393393

394394

395395
## Resolution scopes
396396

397397
In a JSON Schema document it is possible to use relative URIs to refer previously defined
398-
types. Such references are expressed using the `"$ref"` and `"id"` keywords. While the specification describes resolution scope alteration and dereferencing in detail, it doesn't explain the expected behavior when the first occuring `"$ref"` or `"id"` is a relative URI.
398+
types. Such references are expressed using the `"$ref"` and `"id"` keywords. While the specification describes resolution scope alteration and dereferencing in detail, it doesn't explain the expected behavior when the first occurring `"$ref"` or `"id"` is a relative URI.
399399

400400
In the case of this implementation it is possible to explicitly define an absolute URI serving as the base URI (resolution scope) using the appropriate builder method:
401401

0 commit comments

Comments
 (0)