Support for java.util.Optional as a @RequestBody [SPR-15007] #19574
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
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: