Skip to content

Commit

Permalink
Fixes method Expressions.PathStyleExpression.getValue (#2686)
Browse files Browse the repository at this point in the history
Now method returns pattern if it presents

Fixes #2278

Co-authored-by: ada <[email protected]>
  • Loading branch information
ddenisandreev and ada authored Dec 9, 2024
1 parent d678fbf commit 975419f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/feign/template/Expressions.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public String expand(Object value) {
@Override
public String getValue() {
if (this.getPattern() != null) {
return "{" + this.separator + this.getName() + ":" + this.getName() + "}";
return "{" + this.separator + this.getName() + ":" + this.getPattern() + "}";
}
return "{" + this.separator + this.getName() + "}";
}
Expand Down

0 comments on commit 975419f

Please sign in to comment.