Skip to content

Commit f73fe70

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 a7b7c01 commit f73fe70

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
@@ -146,7 +146,7 @@ public List<String> getValues() {
146146
}
147147

148148
public List<String> getVariables() {
149-
List<String> variables = new ArrayList<>();
149+
List<String> variables = new ArrayList<>(this.name.getVariables());
150150
for (Template template : this.values) {
151151
variables.addAll(template.getVariables());
152152
}

0 commit comments

Comments
 (0)