Skip to content

Commit

Permalink
fix: add support for url parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyifang authored and SkeLLLa committed Aug 20, 2020
1 parent 2ef971e commit 6c336e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ const gentShorthandParams = (inWhat) => {
in: inWhat,
};

if (val.required || inWhat === 'path') param.required = true;
if (val.in) param.in = params[name].in;
if (val.required || param.in === 'path') param.required = true;
if (typeof val.description !== 'undefined') {
param.description = val.description;
}
Expand Down

0 comments on commit 6c336e4

Please sign in to comment.