I would like to create a way to read
multiple files, each of which contain the definition of one Joi schema, and then load/push
them into an object or array that I can call from my Node app.
Normally, this is done inline in code:
var schema = Joi.object().keys({
a: Joi.string()
});
How should I define each Joi schema in one file, and how do I load them such that they are instantiated and usable in the main app?