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
When i define one file it works correctly and generates the following code
let useForm = false;
let convertFormParamsToString = false;
// use FormData to transmit files using content-type "multipart/form-data"
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
useForm = canConsumeForm;
if (useForm) {
when defining as list it generates this, the canConsumeForm-part is missing
let useForm = false;
let convertFormParamsToString = false;
if (useForm) {
when i manually set useForm=true in the generated code, everything works fine
The text was updated successfully, but these errors were encountered:
wutzebaer
changed the title
Upload a list af files with multipart
File list in multipart breaks ganerated angular client
Jan 17, 2020
wutzebaer
changed the title
File list in multipart breaks ganerated angular client
[TYPESCRIPT-ANGULAR] File list in multipart breaks ganerated angular client
Jan 17, 2020
Description
I define a list of files on my yaml file and the gernerated angular code is broken
Swagger-codegen version
v3.0.16
Swagger declaration file content or url
Command line used for generation
java -jar swagger-codegen-cli.jar generate -i input.yaml -l typescript-angular
Steps to reproduce
Suggest a fix/enhancement
When i define one file it works correctly and generates the following code
when defining as list it generates this, the canConsumeForm-part is missing
when i manually set useForm=true in the generated code, everything works fine
The text was updated successfully, but these errors were encountered: