From 69ced98c9e58429132e9d589285a356230be2885 Mon Sep 17 00:00:00 2001 From: JaredAAT Date: Mon, 25 Jul 2022 10:45:28 +0100 Subject: [PATCH] store server variables when provided --- src/definitionGenerator.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/definitionGenerator.js b/src/definitionGenerator.js index dcbed40..a448961 100644 --- a/src/definitionGenerator.js +++ b/src/definitionGenerator.js @@ -134,6 +134,10 @@ class DefinitionGenerator { obj.description = server.description } + if (server.variables) { + obj.variables = server.variables + } + newServers.push(obj) } } else { @@ -145,6 +149,10 @@ class DefinitionGenerator { obj.description = servers.description } + if (servers.variables) { + obj.variables = servers.variables + } + newServers.push(obj) }