UNPKG

pallies

Version:

Robust user management for Hapi

18 lines (14 loc) 295 B
'use strict'; const Joi = require('joi'); /** @type {Joi} */ module.exports = Joi .extend({ type: /^/, rules: { nullable: { method() { return this.allow(null).default(null); } } } });