Skip to content

Commit

Permalink
Merge pull request #33 from JaredCE/bugfix/#32
Browse files Browse the repository at this point in the history
Bugfix/#32
  • Loading branch information
JaredCE authored Jul 25, 2022
2 parents a4d3278 + 33bde4d commit 4554b6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-openapi-documenter",
"version": "0.0.17",
"version": "0.0.18",
"description": "Generate OpenAPI v3 documentation and Postman Collections from your Serverless Config",
"main": "index.js",
"keywords": [
Expand Down
8 changes: 8 additions & 0 deletions src/definitionGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ class DefinitionGenerator {
obj.description = server.description
}

if (server.variables) {
obj.variables = server.variables
}

newServers.push(obj)
}
} else {
Expand All @@ -145,6 +149,10 @@ class DefinitionGenerator {
obj.description = servers.description
}

if (servers.variables) {
obj.variables = servers.variables
}

newServers.push(obj)
}

Expand Down

0 comments on commit 4554b6f

Please sign in to comment.