UNPKG

joi-json

Version:

Builds Joi schemas from JSON objects

19 lines (11 loc) 299 B
const { isFunction } = require( './utils' ); const StringSchema = require( './string' ); class UUIDSchema extends StringSchema { constructor() { super(); } _createSchema( engine ) { return super._createSchema( engine ).uuid(); } } module.exports = UUIDSchema;