validateSpecifications(request) {
    const { index, collection } = request.getIndexAndCollection(),
      specifications = request.getBody();

    return global.kuzzle.validation
      .validateFormat(index, collection, specifications, true)
      .then(({ isValid, errors }) => {
        if (!isValid) {
          return {
            description: "Some errors with provided specifications.",
            details: errors,
            valid: false,
          };
        }

        return {
          valid: true,
        };
      });
  }
Validate a specification

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