validate(request) {
    assertHasBody(request);
    assertHasIndexAndCollection(request);

    // @todo validation service should not take request argument
    return global.kuzzle.validation.validate(request, true);
  }
Validate a document against collection validation specifications.

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