Skip to content
Snippets Groups Projects
Unverified Commit aa86ffef authored by Fernando Takagi's avatar Fernando Takagi Committed by GitHub
Browse files

Adjust angular generator to always add false boolean HTTP GET parameters (#889)

parent 6914b7b9
Branches
Tags
No related merge requests found
......@@ -154,7 +154,7 @@ export class {{(index .Tags 0).Name}}Service {
let params = new HttpParams();
{{- range $argument := $operation.Parameters -}}
{{if eq $argument.In "query"}}
if ({{$argument.Name}}) {
if ({{$argument.Name}}{{if eq $argument.Type "boolean"}} || {{$argument.Name}} === false{{end}}) {
{{if eq $argument.Type "array" -}}
{{$argument.Name}}.forEach(e => params = params.append('{{$argument.Name}}', String(e)))
{{- else -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment