From 9122af6058177b087378b812651205480fcc31c3 Mon Sep 17 00:00:00 2001 From: Krzysztof Karol Date: Fri, 8 Dec 2017 13:29:24 +0100 Subject: [PATCH] Fix wrong params indentation --- .../src/main/resources/typescript-angularjs/api.mustache | 6 ++++-- samples/client/petstore/typescript-angularjs/git_push.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache b/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache index 7d400e8f2b6..c82000979a5 100644 --- a/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache +++ b/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache @@ -73,9 +73,11 @@ export class {{classname}} { let httpRequestParams: ng.IRequestConfig = { method: '{{httpMethod}}', url: localVarPath, - {{#bodyParam}}data: {{paramName}}, + {{#bodyParam}} + data: {{paramName}}, {{/bodyParam}} - {{#hasFormParams}}data: this.$httpParamSerializer(formParams), + {{#hasFormParams}} + data: this.$httpParamSerializer(formParams), {{/hasFormParams}} params: queryParameters, headers: headerParams diff --git a/samples/client/petstore/typescript-angularjs/git_push.sh b/samples/client/petstore/typescript-angularjs/git_push.sh index ed374619b13..ae01b182ae9 100644 --- a/samples/client/petstore/typescript-angularjs/git_push.sh +++ b/samples/client/petstore/typescript-angularjs/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git