This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/@hapi/joi/lib/schemas.js
2019-08-11 20:48:02 +02:00

20 lines
561 B
JavaScript
Executable file

'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();