docs: function separateJoiValidationObject(config) {
    const post = {};
    const put = {};
    const schema = Object.assign({}, config);
    Object.keys(schema).forEach((prop) => {
      if (schema[prop] === null) {
        throw new Error('Null configs are not supported!');
      } else if (schema[prop].joi) {
        const itemConf = schema[prop];
        if (!itemConf.joi.isJoi) {
          itemConf.joi = Joi.object(itemConf.joi);
        }
        put[prop] = itemConf.joi;
        if (itemConf.required) {
          post[prop] = itemConf.joi.required();
        } else {
          post[prop] = itemConf.joi;
        }
        delete schema[prop].joi;
      }
    });
    return {
      schema,
      post,
      put,
    };
  }