I have a trouble with spring-cloud-openfeign-core after update from version 2.1.1 to version 2.1.2.
When I perform a call with an empty parameter it always adds its name to a query string that was not the case before.
The generated url in 2.1.1 is http://test.url/endpoint but in 2.1.2 it becomes http://test.url/endpoint?id with ?id at the end.
// request
myFeignClient.myGetRequest(List.of())
// client
@FeignClient(name = "client", url = "http://test.url/")
public interface MyFeignClient {
@RequestLine("GET /endpoint?id={id}")
Object get(@Param(value = "id") List<String> id);
}
Is there any way to get rid of empty parameters names?