swagger-typescript-api
swagger-typescript-api copied to clipboard
fix: put requests with application/x-www-form-urlencoded is incorrect…
…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.