mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #891] Handle JSON Parameter list validation #312
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @someshkar on GitHub (May 21, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/891
Originally assigned to: @liyasthomas on GitHub.
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:
@AndrewBastin commented on GitHub (May 21, 2020):
@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.
@someshkar commented on GitHub (May 22, 2020):
@AndrewBastin How exactly do I access the Raw Input mode for editing the JSON directly?
@liyasthomas commented on GitHub (May 22, 2020):
@someshkar toggle "Raw Input"

@someshkar commented on GitHub (May 22, 2020):
@liyasthomas Alright thanks!
@liyasthomas commented on GitHub (May 22, 2020):
key - value pairs should only be used for string types. For arrays, switch to "Raw input".
@AndrewBastin commented on GitHub (May 22, 2020):
@liyasthomas won't it be nice if there is warning or toast or something about this ?
@liyasthomas commented on GitHub (May 22, 2020):
Okay, a toast should be appropriate.
@someshkar commented on GitHub (May 23, 2020):
Yeah, a toast makes sense for now.