You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
....if(file!==undefined){formParams=formParams.append('file',<any>file)asany||formParams;}// HERE returnthis.httpClient.post<any>(`${this.basePath}/api/1/Import`,{withCredentials: this.configuration.withCredentials,headers: headers,observe: observe,reportProgress: reportProgress});
....
Instead of
....if(file!==undefined){formParams=formParams.append('file',<any>file)asany||formParams;}returnthis.httpClient.post<any>(`${this.basePath}/api/1/Import`,formParams,// as body{withCredentials: this.configuration.withCredentials,headers: headers,observe: observe,reportProgress: reportProgress});
....
Command line used for generation
Online generator.
The text was updated successfully, but these errors were encountered:
angelfraga
changed the title
[Typescript][Angular] formParams are notbeing include as body in the request
[Typescript][Angular] formParams are included as body in the request
Nov 25, 2019
angelfraga
changed the title
[Typescript][Angular] formParams are included as body in the request
[Typescript][Angular] formParams are not included as body in the request
Nov 25, 2019
Description
The generated code doesn't add
formParams
asbody
for files.Swagger-codegen version
Current online typescript-angular generator.
Swagger declaration file content or url
Produces
Instead of
Command line used for generation
Online generator.
The text was updated successfully, but these errors were encountered: