Skip to content

Commit

Permalink
Accept (Path) group as (Params) group
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-steplix committed Aug 28, 2020
1 parent cb89134 commit 731c7bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/apidocToSwagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,14 @@ function createPathParameters(verbs) {
}

if (verbs.parameter && verbs.parameter.fields.Path) {
for (var y = 0; i < verbs.parameter.fields.Path.length; y++) {
var path = verbs.parameter.fields.Path[i];
for (var y = 0; y < verbs.parameter.fields.Path.length; y++) {
var path = verbs.parameter.fields.Path[y];
pathItemObject.push({
name: path.field,
in: path.type === 'file' ? 'formData' : 'path',
required: !path.optional,
type: path.type.toLowerCase(),
description: removeTags(param.description)
description: removeTags(path.description)
});

}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "steplix-apidoc-swagger",
"version": "0.4.3",
"version": "0.4.4",
"description": "Convert api doc json to swagger json, including aws api-gateway attributes",
"author": "Bahman Fakhr Sabahi",
"license": "MIT",
Expand Down

0 comments on commit 731c7bd

Please sign in to comment.