modarb-be / src /helpers /create-schema.ts
Last commit not found
raw
history blame
167 Bytes
import * as joi from "joi";
export const createSchema = <T>(
schema: joi.SchemaMap<T>
): joi.ObjectSchema<T> => {
return joi.object().required().keys(schema);
};