Skip to content

Support for java.util.Optional as a @RequestBody [SPR-15007] #19574

Closed
@spring-projects-issues

Description

@spring-projects-issues

James Howe opened SPR-15007 and commented

Unlike @RequestParam or @PathVariable, @RequestBody doesn't seem to understand that an Optional type should imply required=false, nor that Optional.empty() should be passed rather than null.


Affects: 4.3.4

Issue Links:

Referenced from: commits f3cc4ab, eeb7ae5

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions