Skip to content

Conversation

f-cramer
Copy link

Fixes #545
Before this commit parameters annotated with @RequestParam(defaultValue = "default") where handled differently to parameters annotated with @RequestParam(defaultValue = "default", required = false), although both annotations are semantically identicial.

@pivotal-issuemaster
Copy link

@f-cramer Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@f-cramer Thank you for signing the Contributor License Agreement!

odrotbohm pushed a commit that referenced this pull request Jun 28, 2021
Handler method parameters annotated with @RequestParam(defaultValue = …) are implicitly not required and thus should still be advertised in the URI templated generated. Previously it was necessary to explicitly set @RequestParam(required = …) to false.

Original pull request: #1511.
Related ticket: #331.
odrotbohm pushed a commit that referenced this pull request Jun 28, 2021
Handler method parameters annotated with @RequestParam(defaultValue = …) are implicitly not required and thus should still be advertised in the URI templated generated. Previously it was necessary to explicitly set @RequestParam(required = …) to false.

Original pull request: #1511.
Related ticket: #331.
odrotbohm pushed a commit that referenced this pull request Jun 28, 2021
Handler method parameters annotated with @RequestParam(defaultValue = …) are implicitly not required and thus should still be advertised in the URI templated generated. Previously it was necessary to explicitly set @RequestParam(required = …) to false.

Original pull request: #1511.
Related ticket: #331.
@odrotbohm
Copy link
Member

That's in place now and back-ported to the maintenance branches. Thanks for the contribution!

@odrotbohm odrotbohm closed this Jun 29, 2021
@f-cramer f-cramer deleted the 545-implicitly-not-required-request-parameters branch June 29, 2021 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request parameters are omitted from templated url when they are required and have a default value.
3 participants