Skip to content

Proposal: apply Kotlin default arguments for @RequestParam#defaultValue #30004

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
xuanswe opened this issue Feb 21, 2023 · 1 comment
Closed
Assignees
Labels
status: duplicate A duplicate of another issue theme: kotlin An issue related to Kotlin support

Comments

@xuanswe
Copy link

xuanswe commented Feb 21, 2023

Similar to @RequestParam#required, which is determined by Kotlin type automatically, I would propose to support Kotlin default arguments for @RequestParam#defaultValue.

For example, @RequestParam(defaultValue = "1") size: Int could be just @RequestParam size: Int = 1.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 21, 2023
@bclozel bclozel transferred this issue from spring-projects/spring-boot Feb 21, 2023
@sdeleuze sdeleuze self-assigned this Feb 21, 2023
@sdeleuze sdeleuze added theme: kotlin An issue related to Kotlin support status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 21, 2023
@sdeleuze
Copy link
Contributor

Looks like a duplicate of #21139.

@sdeleuze sdeleuze closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
status: duplicate A duplicate of another issue theme: kotlin An issue related to Kotlin support
Projects
None yet
Development

No branches or pull requests

3 participants