Skip to content

Commit e94f9c2

Browse files
authored
Include variables Query Parameter Names when listing template parameters (#1144)
Fixes #1089 Query Template names, which also happen to be templates, were not being considered when listing out all of the variable names in a Query Template.
1 parent aa00429 commit e94f9c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/feign/template/QueryTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public List<String> getValues() {
133133
}
134134

135135
public List<String> getVariables() {
136-
List<String> variables = new ArrayList<>();
136+
List<String> variables = new ArrayList<>(this.name.getVariables());
137137
for (Template template : this.values) {
138138
variables.addAll(template.getVariables());
139139
}

0 commit comments

Comments
 (0)