spring-cloud / spring-cloud/spring-cloud-openfeign
@SpringQueryMap nested object support
Open
Nobody has claimed this yet.
enhancement
help wanted
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 838
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 13
Description
FeignClient
interface MyFeignClient{
@GetMapping(params = {"projection=wishSummary"})
Object get(
@SpringQueryMap MyObject myObject);
}
MyObject
class MyObject{
Range range;
}
class Range{
Integer from;
Integer to;
}
Feign will build query param like "Range(from=1,to=2)" when I call MyFeignClient.get
I need a query param like "range.from=1&range.to=2" at the example
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the @SpringQueryMap handling used by the FeignClient entry point and trace how MyObject fields become query parameters. Reproduce the nested Range case, then verify that the completed behavior emits separate range.from=1 and range.to=2 parameters rather than a single Range value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100