From 235bdf4a10939c6ec21ada79126e7b7e46ac3886 Mon Sep 17 00:00:00 2001 From: Eran Hammer Date: Wed, 2 Oct 2019 00:03:44 -0700 Subject: [PATCH] Closes #2161 --- API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API.md b/API.md index 13d5da2b7..2a2b517d7 100755 --- a/API.md +++ b/API.md @@ -93,7 +93,7 @@ Second, the value is validated against the defined schema: const { error, value } = schema.validate({ a: 'a string' }); ``` -If the input is valid, then the `error` will be `null`. If the input is invalid, `error` is assigned +If the input is valid, then the `error` will be `undefined`. If the input is invalid, `error` is assigned a [`ValidationError`](https://github.com/hapijs/joi/blob/master/API.md#validationerror) object providing more information.