Skip to content

Commit

Permalink
Fix that prevented the default version to generate the model files
Browse files Browse the repository at this point in the history
  • Loading branch information
JFCote committed Sep 21, 2017
1 parent ae6d34d commit 38253c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class {{classname}} {
{{#formParams}}
{{#isFile}}
reqHasFile = true;
formParams = {{paramName}};
formParams.append("{{baseName}}", {{paramName}});
{{/isFile}}
{{^isFile}}
{{#isListContainer}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export class PetApi {
formParams.append('additionalMetadata', <any>additionalMetadata);
}
reqHasFile = true;
formParams = file;
formParams.append("file", file);
// to determine the Content-Type header
let consumes: string[] = [
'multipart/form-data'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export class PetApi {
formParams.append('additionalMetadata', <any>additionalMetadata);
}
reqHasFile = true;
formParams = file;
formParams.append("file", file);
// to determine the Content-Type header
let consumes: string[] = [
'multipart/form-data'
Expand Down

0 comments on commit 38253c1

Please sign in to comment.