Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto-Gentili committed Oct 25, 2023
1 parent 22e68d5 commit a833938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Map<String, Object> sportAsMap = finderAndConverter.findFirstForPathEndsWith("sp

# <a name="Validating-values-of-a-JSON-document"></a>Validating values of a JSON document
The following example is available in the [ValidatorTest class](https://github.com/burningwave/json/blob/main/src/test/java/org/burningwave/json/ValidatorTest.java).
To validate a JSON document we need to obtain the **Validator** and then register the checks:
To validate a JSON document you need to obtain the **Validator** and then register the checks:
```java
facade.validator().registerCheck(
//Checking whether a value in any field marked as required (e.g.: @JsonProperty(value = "answer", required = true)) is null
Expand All @@ -187,7 +187,7 @@ facade.validator().registerCheck(
})
);
```
Once registered the checks, to execute the validation we must call the `validate` method:
Once registered the checks, to execute the validation you must call the `validate` method:
```java
Collection<Throwable> exceptions =
facade.validator().validate(
Expand Down

0 comments on commit a833938

Please sign in to comment.