Skip to content

Commit d43e9c8

Browse files
KrzysztofKarolwing328
authored andcommitted
Fix wrong params indentation (#7136)
1 parent 2af8868 commit d43e9c8

File tree

2 files changed

+5
-3
lines changed
  • modules/swagger-codegen/src/main/resources/typescript-angularjs
  • samples/client/petstore/typescript-angularjs

2 files changed

+5
-3
lines changed

modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ export class {{classname}} {
7373
let httpRequestParams: ng.IRequestConfig = {
7474
method: '{{httpMethod}}',
7575
url: localVarPath,
76-
{{#bodyParam}}data: {{paramName}},
76+
{{#bodyParam}}
77+
data: {{paramName}},
7778
{{/bodyParam}}
78-
{{#hasFormParams}}data: this.$httpParamSerializer(formParams),
79+
{{#hasFormParams}}
80+
data: this.$httpParamSerializer(formParams),
7981
{{/hasFormParams}}
8082
params: queryParameters,
8183
headers: headerParams

samples/client/petstore/typescript-angularjs/git_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ git_remote=`git remote`
3636
if [ "$git_remote" = "" ]; then # git remote not defined
3737

3838
if [ "$GIT_TOKEN" = "" ]; then
39-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
39+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
4040
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
4141
else
4242
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git

0 commit comments

Comments
 (0)