swagger2markup: query parameter incorrectly shown as json in request example

Using v1.3.1

Given parameters are defined as query parameters in the swagger, the generated example request should show them as query parameters.

Currently the generated example suggest they are passed in as json, e.g.:

==== Example HTTP request

===== Request path
----
/exchange-rate
----


===== Request query
[source,json]
----
{
  "from" : "string",
  "to" : "string"
}
----

Since these are defined as query parameters, the example request should show them as such, e.g.:

==== Example HTTP request

===== Request path
----
/exchange-rate?from=string&to=string
----

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Yes, then let’s get rid of the table.

I think a table would be more readable but a URL is more useful as that can be copy pasted into the browser, curl etc. So overall, I’d prefer the URL.