Make sure body parameter is shown.
This commit is contained in:
parent
67bb10b6a4
commit
d34304afc3
|
@ -88,8 +88,9 @@ function Swagger(remotes, options) {
|
||||||
if (!arg.http) return true;
|
if (!arg.http) return true;
|
||||||
// Don't show derived arguments.
|
// Don't show derived arguments.
|
||||||
if (typeof arg.http === 'function') return false;
|
if (typeof arg.http === 'function') return false;
|
||||||
// Don't show arguments set to the incoming http request or body.
|
// Don't show arguments set to the incoming http request
|
||||||
if (arg.http.source === 'req' || arg.http.source === 'body') return false;
|
// Please note that body needs to be shown, such as User.create()
|
||||||
|
if (arg.http.source === 'req') return false;
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -311,7 +312,7 @@ function convertVerb(verb) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function acceptToParameter(route) {
|
function acceptToParameter(route) {
|
||||||
var type = 'form';
|
var type = 'query'; // Default to query
|
||||||
|
|
||||||
if (route.verb.toLowerCase() === 'get') {
|
if (route.verb.toLowerCase() === 'get') {
|
||||||
type = 'query';
|
type = 'query';
|
||||||
|
|
Loading…
Reference in New Issue