fix injector variable type while generate API doc