Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iandyh
Copy link

@iandyh iandyh commented Jul 29, 2025

…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.

Copy link

changeset-bot bot commented Jul 29, 2025

🦋 Changeset detected

Latest commit: 24704ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@iandyh iandyh force-pushed the main branch 4 times, most recently from f5d92b7 to 9b8d877 Compare July 30, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant