Skip to content

Commit

Permalink
fix(typo): API.md typo fix (hapijs#2464)
Browse files Browse the repository at this point in the history
xeptore authored Sep 30, 2020

Unverified

This user has not yet uploaded their public signing key.
1 parent f309431 commit 0bce0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
@@ -1120,7 +1120,7 @@ Validates a value using the current schema and options where:
- `false` - remove any label prefix from error message, including the `""`.
- `language` - the preferred language code for error messages. The value is matched against keys at the root of the `messages` object, and then the error code as a child key of that. Can be a reference to the value, global context, or local context which is the root value passed to the validation function. Note that references to the value are usually not what you want as they move around the value structure relative to where the error happens. Instead, either use the global context, or the absolute value (e.g. `Joi.ref('/variable')`);
- `render` - when `false`, skips rendering error templates. Useful when error messages are generated elsewhere to save processing time. Defaults to `true`.
- `stack` - when `true`, the main error will possess a stack trace, otherwise it will be disabled. Defaults to `false` for performances reasons. Has no effect on platforms other than V8/node.js as it uses the [Stack trace API](https://v8.dev/docs/stack-trace-api).
- `stack` - when `true`, the main error will possess a stack trace, otherwise it will be disabled. Defaults to `false` for performance reasons. Has no effect on platforms other than V8/node.js as it uses the [Stack trace API](https://v8.dev/docs/stack-trace-api).
- `wrap` - overrides the way values are wrapped (e.g. `[]` around arrays, `""` around labels and variables prefixed with `:`). Each key can be set to a string with one (same character before and after the value) or two characters (first character before and second character after), or `false` to disable wrapping:
- `label` - the characters used around `{#label}` references. Defaults to `'"'`.
- `array` - the characters used around array values. Defaults to `'[]'`.

0 comments on commit 0bce0e7

Please sign in to comment.