getSpecifications(request) {
    const { index, collection } = request.getIndexAndCollection();

    return global.kuzzle.internalIndex
      .get("validations", `${index}#${collection}`)
      .then((response) => response._source)
      .catch((error) => {
        if (error.status === 404) {
          throw kerror.getFrom(
            error,
            "validation",
            "assert",
            "not_found",
            index,
            collection,
          );
        }

        throw error;
      });
  }
Get the collection validation specifications

@param {Request} request
@returns {Promise.<Object>}