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

Parameter list not showing JSON object fields (force raw?) #597

Closed
leomp12 opened this issue Feb 24, 2020 · 6 comments · Fixed by #678
Closed

Parameter list not showing JSON object fields (force raw?) #597

leomp12 opened this issue Feb 24, 2020 · 6 comments · Fixed by #678
Assignees
Labels
feature New feature or request

Comments

@leomp12
Copy link
Contributor

leomp12 commented Feb 24, 2020

Describe the bug
JSON body is not being properly parsed to parameter list, when raw input is disabled the body seems to be empty even with a valid object set.

I'm not really sure if it's a bug, Imho the best approach is just force raw input for application/json content type and hide the switch input (feature request ?).
I can give a try if you agree :bowtie:

To Reproduce
Steps to reproduce the behavior:

  1. As example, go to this request;
  2. Disable raw input if enabled;
  3. Any property is shown on parameter list;

Expected behavior
On provided example, I was expecting to see app_id, title and the other body object properties on parameter list, or just force raw input for application/json and then show JSON body as is (Imo it would be even better than fix parameter list behavior).

Screenshots
Screenshot_2020-02-24 Postwoman • A free, fast and beautiful API request builder(1)
Screenshot_2020-02-24 Postwoman • A free, fast and beautiful API request builder

Desktop (please complete the following information):

  • OS: Linux 5.5.5-arch1-1 (Arch Linux)
  • Browser: Firefox
  • Version: 73.0.1 (64-bit)

Smartphone (please complete the following information):
N/A

Additional context
N/A

@leomp12 leomp12 changed the title Parameter list not showing JSON object fields (should force raw input ?) Parameter list not showing JSON object fields (force raw?) Feb 24, 2020
@liyasthomas
Copy link
Member

well, the raw parameter feature for payload enables us to send nested arrays, import JSON file contents etc. So I afraid we can't directly map the raw parameter objects to key -value pairs.

And regarding forcing whether key-value pair or raw parameters toggle, well this seems like a better option since even though the provided example request had raw parameters enabled, I was served with the default key-value pairs at first. I'd to manually toggle to raw parameters to see tje payload.

@liyasthomas liyasthomas added the feature New feature or request label Feb 24, 2020
@leomp12
Copy link
Contributor Author

leomp12 commented Feb 24, 2020

@liyasthomas great! You want me to give a try? If so, you can assign me to the issue.

@liyasthomas
Copy link
Member

liyasthomas commented Feb 24, 2020

sure! We'd love to have you onboard! Assigning this to you.

@liyasthomas
Copy link
Member

@leomp12 how's the progress on this issue?

@leomp12
Copy link
Contributor Author

leomp12 commented Mar 11, 2020

Hey @liyasthomas ,
I haven't had time yet, sorry 😞
I was planning to do it next week, probably on Monday or Tuesday, it's ok for you to wait?

@liyasthomas
Copy link
Member

yeah sure! ✌️💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants