swagger-codegen
swagger-codegen copied to clipboard
[Typecscript-angular2] import Injection Token for BASE_PATH not correct [2.2.3-SNAPSHOT]
Hi,
I use swagger-codegen 2.2.3-SNAPSHOT and I have an issue with typescript-angular2 generated client. In the file variable.ts I have the following :
`import { InjectionToken
export const BASE_PATH = new InjectionToken
The first line is not correct and should be import { InjectionToken } from '@angular/core';
To fix this, I think that we need to change:
- In file TypeScriptAngular2ClientCodegen line 35
protected String injectionToken = "InjectionToken<string>";toprotected String injectionToken = "InjectionToken"; - And file \typescript-angular2\variables.mustache should be: `import { {{{injectionToken}}} } from '@angular/core';
export const BASE_PATH = new {{{injectionToken}}}
Could you have a look ?
Many thanks :) Simon