Support for java.util.Optional as a @RequestBody [SPR-15007] #19574
Comments
Juergen Hoeller commented This is aligned with our |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
James Howe opened SPR-15007 and commented
Unlike
@RequestParam
or@PathVariable
,@RequestBody
doesn't seem to understand that anOptional
type should implyrequired=false
, nor thatOptional.empty()
should be passed rather thannull
.Affects: 4.3.4
Issue Links:
@RequestParam
@RequestBody
should have a required parameter to allow a request body to be optional@RequestPart
Referenced from: commits f3cc4ab, eeb7ae5
The text was updated successfully, but these errors were encountered: