Skip to content

Commit

Permalink
Merge pull request #4094 from jonathansamines/feature/server-validato…
Browse files Browse the repository at this point in the history
…r-docs

[server-validator-docs] Update server.validator() documentation
  • Loading branch information
hueniverse committed May 16, 2020
2 parents 05109d7 + efc9afe commit 8f24209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Expand Up @@ -2600,7 +2600,7 @@ Registers a server validation module used to compile raw validation rules into v

Return value: none.

Note: the validator is only used when validation rules are not pre-compiled schemas. When a validation rules is a function or schema object, the rule is used as-is and the validator is not used.
Note: the validator is only used when validation rules are not pre-compiled schemas. When a validation rules is a function or schema object, the rule is used as-is and the validator is not used. When setting a validator inside a plugin, the validator is only applied to routes set up by the plugin and plugins registered by it.

```js
const Hapi = require('@hapi/hapi');
Expand Down

0 comments on commit 8f24209

Please sign in to comment.