import * as joi from "joi"; export const createSchema = ( schema: joi.SchemaMap ): joi.ObjectSchema => { return joi.object().required().keys(schema); };