Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

spring-issuemaster opened this issue Jul 25, 2018 · 1 comment


None yet
2 participants
Copy link

commented Jul 25, 2018

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)


Affects: 5.0.7

Issue Links:

  • #21381 Validation failure not exposed next to binding failure for immutable form class

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 25, 2018

Sébastien Deleuze commented

That's the expected behavior (even if surprising the first time) as described in the reference documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.