forked from loafle/openapi-generator-original
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:
@@ -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[] = [
|
||||
|
||||
@@ -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[] = [
|
||||
|
||||
@@ -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):_
|
||||
|
||||
@@ -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[] = [
|
||||
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user