Skip to content

Commit

Permalink
Update API.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed May 16, 2020
1 parent a8f5688 commit efc9afe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions API.md
Expand Up @@ -2600,9 +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.

When setting a validator inside a plugin, the validator is only applied to routes set up by the plugin and plugins registered by it. Note that the validator applies only to routes added after it has been set.
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 efc9afe

Please sign in to comment.