swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

fix: put requests with application/x-www-form-urlencoded is incorrect…

Open iandyh opened this issue 4 months ago • 6 comments

…ly handled

I was facing this issue with [email protected].

For a PUT request expecting application/x-www-form-urlencoded, The generated swagger.json has the correct config:

"consumes": ["application/x-www-form-urlencoded"]

However, the generated code incorrectly set the request to be sent with multipart/form-data.

type: ContentType.FormData

fyi: the code is entirely generated by Github Copilot.

iandyh avatar Jul 29 '25 10:07 iandyh