redoc
redoc copied to clipboard
"application/x-www-form-urlencoded" in request body are not being rendered in the right panel
As the title says, application/x-www-form-urlencoded
is not being rendered in the right panel.
If I set it to application/json
, it renders well (as a JSON
, of course).
You can check it in the live demo.
Thanks for the report and for the demo link. You can add your example manually at them moment via media type example
.
What output do you expect for the example you sent?
name=Guru&status=available
I need to display example in json format for easy readability. Is there any option for that ?
@RomanHotsiy the media type example doesn't work either. Any other workaround? This issue has more than 1 year, any idea if this will be fixed?
I need to display example in json format for easy readability. Is there any option for that ?
@vaasav-kumar the concern is that Redoc is used by many people and what is "easy readability" for you or your API docs may be confusing for someone else.
@d-silva The above is one of the reasons we're not working on it yet. We don't have a good idea yet that will satisfy broad audience of users.
Another reason is that we have limited resources right now and this is a feature request while we have bunch of bugs to solve 🙈 .
I marked it with feature
label so it gets higher in our list. Thanks for pinging me.
I understand. Thanks for your reply @RomanHotsiy
Are there any updates on this?
In OpeanAPI v3 it can be done like so:
requestBody:
content:
application/x-www-form-urlencoded:
example:
client_id: a08bfa22-e6d6-11ed-891c-2ea11c960b3f
code_challenge: 9Y__uhKapn7GO_ElcaQpd8C3hdOyqTzAU4VXyR2iEV0
Hi, are there any new changes on this issue?
Thanks for checking in on this @szymonmil , we'll update the issue when we're working on this, or have something to share.