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

Closed
spring-projects-issues opened this issue Jul 25, 2018 · 1 comment
Closed

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues 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)

Thanks


Affects: 5.0.7

Issue Links:

  • #21381 Validation failure not exposed next to binding failure for immutable form class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants