Skip to content
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

Fix form data with show curl before try #1085

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JochenHeizmann
Copy link

@JochenHeizmann JochenHeizmann commented Mar 18, 2025

I had some problems with RapiDoc with multipart/form-data Requests in combination with generating the CURL Requests.

First, it didn't handle the items I enter in a <tag-input> component correctly.

It also resets the items each time when I clicked "TRY" to send the request (when show-curl-before-try is set to 'true').

Finally, it also didn't live update the CURL request.

Besides my changes to address those issues, I've also added an example specs to try it out (docs/specs/form-data-test.json).

FYI: I've based this pull request on the v9.3.8 because that was the version I used for my project.

- Correctly handle <tag-input> compoenents to generate CURL Requests with array items
- Auomatically live update CURL Requests when show-curl-before-try is set to true
- Added JSON Spec as example
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