Skip to content

Support Kotlin nullable information in Spring MVC parameters [SPR-14165] #18737

Closed
@spring-projects-issues

Description

@spring-projects-issues

Raman Gupta opened SPR-14165 and commented

Spring MVC now supports defining fields with the JDK 8 Optional type to indicate that the parameter is optional (cool!).

Kotlin has fields which can be marked as a nullable type e.g. String? vs. String. This information should be used by Spring MVC in the same way as Optional.

See: KType documentation


Affects: 4.2.5

Issue Links:

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