Fix for missing headers (#4328)

* Fix for  #4322

Signed-off-by: Sebastian Haas <sebastian@haas.tech>

* Run typescript-angular2-petstore.sh

Signed-off-by: Sebastian Haas <sebastian@haas.tech>

* Run typescript-angular2-petstore.sh

Signed-off-by: Sebastian Haas <sebastian@haas.tech>
This commit is contained in:
Sebastian Haas
2016-12-06 16:59:59 +01:00
committed by wing328
parent 79a71fd697
commit 648f8df235
5 changed files with 7 additions and 6 deletions

View File

@@ -98,10 +98,9 @@ export class {{classname}} {
}
{{/queryParams}}
{{#headers}}
{{#headerParams}}
headers.set('{{baseName}}', String({{paramName}}));
{{/headers}}
{{/headerParams}}
// to determine the Content-Type header
let consumes: string[] = [

View File

@@ -255,6 +255,7 @@ export class PetApi {
throw new Error('Required parameter petId was null or undefined when calling deletePet.');
}
headers.set('api_key', String(apiKey));
// to determine the Content-Type header
let consumes: string[] = [

View File

@@ -1,4 +1,4 @@
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612011557
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612061134
### Building
@@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
_published:_
```
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612011557 --save
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612061134 --save
```
_unPublished (not recommended):_

View File

@@ -255,6 +255,7 @@ export class PetApi {
throw new Error('Required parameter petId was null or undefined when calling deletePet.');
}
headers.set('api_key', String(apiKey));
// to determine the Content-Type header
let consumes: string[] = [

View File

@@ -1,6 +1,6 @@
{
"name": "@swagger/angular2-typescript-petstore",
"version": "0.0.1-SNAPSHOT.201612011557",
"version": "0.0.1-SNAPSHOT.201612061134",
"description": "swagger client for @swagger/angular2-typescript-petstore",
"author": "Swagger Codegen Contributors",
"keywords": [