diff --git a/Microsoft.RestApi.RestTransformer/RestOperationTransformer.cs b/Microsoft.RestApi.RestTransformer/RestOperationTransformer.cs index b32a106..1aa1ff3 100644 --- a/Microsoft.RestApi.RestTransformer/RestOperationTransformer.cs +++ b/Microsoft.RestApi.RestTransformer/RestOperationTransformer.cs @@ -582,7 +582,15 @@ private static string GetExampleRequestUri(IList paths, Dictionary !q.Contains("={"))); + if (msExampleParameters != null) + { + contents[1] = string.Join("&", queries.Where(q => msExampleParameters.Any(p => q.Contains(Convert.ToString(p.Value))) || !q.Contains("={"))); + } + else + { + contents[1] = string.Join("&", queries.Where(q => !q.Contains("={"))); + } + if (string.IsNullOrEmpty(contents[1])) { pathContent = contents[0];