Ignore query string when extracting path parameters

Closes gh-285
This commit is contained in:
Andy Wilkinson
2016-08-19 19:51:16 +01:00
parent 9ba0a9b6be
commit a0faebdb0a
2 changed files with 18 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ public class PathParametersSnippet extends AbstractParametersSnippet {
@Override
protected Set<String> extractActualParameters(Operation operation) {
String urlTemplate = extractUrlTemplate(operation);
String urlTemplate = removeQueryStringIfPresent(extractUrlTemplate(operation));
Matcher matcher = NAMES_PATTERN.matcher(urlTemplate);
Set<String> actualParameters = new HashSet<>();
while (matcher.find()) {