Closed klimentru1986 closed 4 years ago
I need to generate api with a multipart/form-data, but is's not work.
multipart/form-data
I found a problem.
The type in the old version swagger 2.0 was in a consumes section.
consumes
The type in the current version is placed in a content section.
content
You check only consumes section in you library. And the api with the multipart/form-data type isn't generated.
https://github.com/Manweill/swagger-axios-codegen/blob/v0.3/src/requestCodegen/index.ts#L25
Please fix it.
@klimentru1986 Welcome to PR.
Done. #94
I need to generate api with a
multipart/form-data
, but is's not work.I found a problem.
The type in the old version swagger 2.0 was in a
consumes
section.The type in the current version is placed in a
content
section.You check only
consumes
section in you library. And the api with themultipart/form-data
type isn't generated.https://github.com/Manweill/swagger-axios-codegen/blob/v0.3/src/requestCodegen/index.ts#L25
Please fix it.