From a8339386cf4c85754af4e0f701c4bb5dc4f6ad6d Mon Sep 17 00:00:00 2001 From: Roberto Gentili Date: Wed, 25 Oct 2023 08:43:14 +0000 Subject: [PATCH] Update --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 225c356..11b3f8d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -174,7 +174,7 @@ Map sportAsMap = finderAndConverter.findFirstForPathEndsWith("sp # 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 @@ -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 exceptions = facade.validator().validate(