Skip to content

Commit

Permalink
Remove obsolete sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Aug 1, 2018
1 parent c9ce43b commit 88b2a42
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion API.md
Expand Up @@ -170,7 +170,6 @@ Validates a value using the given schema and options where:
- `language` - overrides individual error messages. Defaults to no override (`{}`). Messages apply the following rules :
- variables are put between curly braces like `{{var}}`, if prefixed by a `!` like `{{!var}}`, it will be html escaped if the option `escapeHtml` is also set to `true`
- strings are always preceeded by the key name, unless a `{{label}}` is found elsewhere or if the string is prefixed by a `!!`
- when `'label'` is set, it overrides the key name in the error message
- to better understand the structure of the language, it's advised to have a look at the existing messages you want to override [here](lib/language.js)
- `presence` - sets the default presence requirements. Supported modes: `'optional'`, `'required'`, and `'forbidden'`.
Defaults to `'optional'`.
Expand Down

0 comments on commit 88b2a42

Please sign in to comment.