-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Handle JSON Parameter list validation #891
Comments
@someshkar Thank you for opening the issue. We will look into the issue ASAP. For now, I suggest you use the Raw Input mode to edit the JSON directly. |
@AndrewBastin How exactly do I access the Raw Input mode for editing the JSON directly? |
@someshkar toggle "Raw Input" |
@liyasthomas Alright thanks! |
key - value pairs should only be used for string types. For arrays, switch to "Raw input". |
@liyasthomas won't it be nice if there is warning or toast or something about this ? |
Okay, a toast should be appropriate. |
Yeah, a toast makes sense for now. |
Is your feature request related to a problem? Please describe.
The ability to add and remove fields when POSTing JSON bodies to an API is only limited to key value pairs. When trying to POST data to a REST API which consumes a JSON array, I don't see a clear way to do this. The JSON body looks like this:
Describe the solution you'd like
I'd like to be able to add an array as the value of a key in the JSON body.
Describe alternatives you've considered
One good solution would be having sub entries under one key-value pair in the UI.
Additional context
This is what currently happens when I try to use an array as a key-value pair in the JSON body:
And attempting to use single quotes just results in the array getting converted to a string on it's own:
The text was updated successfully, but these errors were encountered: