spring-projects / spring-projects/spring-boot
Treat Duration and DataSize as scalar values in MapBinder
Open
Nobody has claimed this yet.
type: enhancement
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
Duration and DataSize are commonly used data types that we could treat as scalar types in MapBinder. This would allow them to be used in keys that contain '.' without needing the [...] escape syntax.
See #27581 for an 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 by locating MapBinder and its existing scalar-type handling, then read issue #27581 for the concrete binding example. The change is done when Duration and DataSize keys containing '.' bind without requiring the [...] escape syntax, with coverage for those cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100