forked from loafle/openapi-generator-original
Fix wrong params indentation (#7136)
This commit is contained in:
committed by
William Cheng
parent
2af8868281
commit
d43e9c8be2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user