File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
handlebars/typescript-angular
mustache/typescript-angular Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 253
253
</dependencies >
254
254
<properties >
255
255
<swagger-codegen-version >3.0.19-SNAPSHOT</swagger-codegen-version >
256
- <swagger-parser-version >2.0.18 </swagger-parser-version >
257
- <swagger-core-version >2.1.1 </swagger-core-version >
258
- <jackson-version >2.10.1 </jackson-version >
256
+ <swagger-parser-version >2.0.19-SNAPSHOT </swagger-parser-version >
257
+ <swagger-core-version >2.1.2-SNAPSHOT </swagger-core-version >
258
+ <jackson-version >2.10.3 </jackson-version >
259
259
<scala-version >2.11.1</scala-version >
260
260
<felix-version >3.3.0</felix-version >
261
261
<commons-io-version >2.4</commons-io-version >
Original file line number Diff line number Diff line change @@ -200,13 +200,13 @@ export class {{classname}} {
200
200
// authentication ({ {name} }) required
201
201
{ {#isApiKey} }
202
202
{ {#isKeyInHeader} }
203
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
203
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
204
204
{{#useHttpClient} }headers = { {/useHttpClient} }headers.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
205
205
}
206
206
207
207
{ {/isKeyInHeader} }
208
208
{ {#isKeyInQuery} }
209
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
209
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
210
210
{{#useHttpClient} }queryParameters = { {/useHttpClient} }queryParameters.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
211
211
}
212
212
Original file line number Diff line number Diff line change @@ -200,13 +200,13 @@ export class {{classname}} {
200
200
// authentication ({ {name} }) required
201
201
{ {#isApiKey} }
202
202
{ {#isKeyInHeader} }
203
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
203
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
204
204
{{#useHttpClient} }headers = { {/useHttpClient} }headers.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
205
205
}
206
206
207
207
{ {/isKeyInHeader} }
208
208
{ {#isKeyInQuery} }
209
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
209
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
210
210
{{#useHttpClient} }queryParameters = { {/useHttpClient} }queryParameters.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
211
211
}
212
212
You can’t perform that action at this time.
0 commit comments