Skip to content

@RequestBody validation kotlin support improvement [SPR-17085] #21622

Closed
@spring-projects-issues

Description

@spring-projects-issues

Viacheslav Petriaiev opened SPR-17085 and commented

Hello, I have the next issue

javax.validation annotations (for example @NotEmpty) is not working properly with kotlin data class

Not working data class

data class User(@NotNull val login: String? = null)

Working data class

data class User(@field:NotNull val login: String? = null)

Thanks


Affects: 5.0.7

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions