Skip to content

Commit 85c82cf

Browse files
committed
Update API.md
1 parent 56e5419 commit 85c82cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,10 +2148,10 @@ following options:
21482148
expressed as one of:
21492149
- `true` - any payload allowed (no validation performed). This is the default.
21502150
- `false` - no payload allowed.
2151-
- a [Joi](http://github.com/hapijs/joi) validation object.
2151+
- a [Joi](http://github.com/hapijs/joi) validation object. This will receive the request's headers, params, query, payload, and auth credentials and isAuthenticated flags as context.
21522152
- a validation function using the signature `function(value, options, next)` where:
21532153
- `value` - the object containing the response object.
2154-
- `options` - the server validation options.
2154+
- `options` - the server validation options, merged with an object containing the request's headers, params, payload, and auth credentials object and isAuthenticated flag.
21552155
- `next(err)` - the callback function called when validation is completed.
21562156
- `status` - HTTP status-code-specific validation rules. The `status` key is set to an
21572157
object where each key is a 3 digit HTTP status code and the value has the same

0 commit comments

Comments
 (0)