-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
option for setting the type of body param #2775
Comments
What body type are you referring to for this? |
as you can see the server expects the values in multipart form body of the request to be sent according to the type that it expects. the variable SAMPLE_USER_ID was set in environment variables and when it's retrieved to be sent in the request body, it's interpreted as a string. having the option to set the type of sent body parameters in environment variables and directly for each body parameter would help a lot. |
I am pretty sure |
oh well I looked at a couple of other http clients and guess you're right, however this issue only happens for me with saved environment variables. It seems so that when sending the request Bruno wraps whatever is inside environment variables in what I assume is double quotation marks which causes the server to interpret them as strings. This won't happen however when the value is given directly without the use of variables: |
I understand now. |
It's happening because Bruno does not yet replace variables in multipart/form-data. Bruno sends {{SAMPLE_USER_ID}} not 1. Relevant PR: #1217 |
I have checked the following:
Describe the feature you want to add
There should be an ability to select in which type the body parameters are being sent. Currently all stored environment variables are sent as strings which the API backend might not accept.
Mockups or Images of the feature
A simple selection menu for each body param and ideally for each environment variable would solve the proplem.
The text was updated successfully, but these errors were encountered: