jeffhollan / LogicAppTemplateCreator

Script to convert Logic Apps into templates for deployment
MIT License
144 stars 74 forks source link

Same hard-coded string added as multiple parameters #98

Open Costin-hcl opened 3 years ago

Costin-hcl commented 3 years ago

This is not necessarily a bug but it would still be good to have it as an option.

Assuming we have two HTTP Get actions, both with the same hard-coded URL. When exporting the template, it will generate two parameters:

"HTTP-URI": {
  "type": "string",
  "defaultValue": "https://www.bing.com/search?q=shopping"
},
"HTTP_get_again-URI": {
  "type": "string",
  "defaultValue": "https://www.bing.com/search?q=shopping"
},

Sometimes you may want to have just one parameter for each unique string. So maybe adding an additional option for preventing duplicates when generating parameters is the way to go.

MLogdberg commented 3 years ago

We had that in the beginning actually but then removed it due to unexpected behavior. Maybee need to look in to this again