Skip to content

Commit

Permalink
store server variables when provided
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredCE committed Jul 25, 2022
1 parent a4d3278 commit 69ced98
Showing 1 changed file with 8 additions and 0 deletions.
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 69ced98

Please sign in to comment.