You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
561 B
21 lines
561 B
4 years ago
|
'use strict';
|
||
|
|
||
|
const Joi = require('./index');
|
||
|
|
||
|
|
||
|
const internals = {};
|
||
|
|
||
|
|
||
|
exports.options = Joi.object({
|
||
|
abortEarly: Joi.boolean(),
|
||
|
convert: Joi.boolean(),
|
||
|
allowUnknown: Joi.boolean(),
|
||
|
skipFunctions: Joi.boolean(),
|
||
|
stripUnknown: [Joi.boolean(), Joi.object({ arrays: Joi.boolean(), objects: Joi.boolean() }).or('arrays', 'objects')],
|
||
|
language: Joi.object(),
|
||
|
presence: Joi.string().only('required', 'optional', 'forbidden', 'ignore'),
|
||
|
context: Joi.object(),
|
||
|
noDefaults: Joi.boolean(),
|
||
|
escapeHtml: Joi.boolean()
|
||
|
}).strict();
|