-
Notifications
You must be signed in to change notification settings - Fork 99
add bean validation implementation dependency #608
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @denis-anisimov)
vaadin-spring/pom.xml, line 88 at r1 (raw file):
hibernate-validator
Do you really need this validation impl ?
hibernate-validator
is just one impl of Validation API.
Use may decide to use another impl.
This dep fixes the impl.
As I understand the issue is inside our code which unconditionally tries to get the validation impl.
I'm not familiar with the code but if you need this validation conditionally (only if it's in the classpath) you may use similar code that we have in Binder:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @denis-anisimov)
vaadin-spring/pom.xml, line 88 at r1 (raw file):
Previously, denis-anisimov (Denis) wrote…
hibernate-validator
Do you really need this validation impl ?
hibernate-validator
is just one impl of Validation API.
Use may decide to use another impl.
This dep fixes the impl.As I understand the issue is inside our code which unconditionally tries to get the validation impl.
I'm not familiar with the code but if you need this validation conditionally (only if it's in the classpath) you may use similar code that we have in Binder:
It's actually mandatory for CCDM, we use bean validators to validate the endpoint methods. Basically it's these 2 requirement tickets: vaadin/vaadin-connect#215, vaadin/vaadin-connect#217.
It would be a bit inconvenient for people who try to use endpoints, which is the core feature of CCDM that they cannot start the server until they add a bean validator dependency to the pom file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved
vaadin-spring/pom.xml, line 88 at r1 (raw file):
Previously, haijian-vaadin (Haijian Wang) wrote…
It's actually mandatory for CCDM, we use bean validators to validate the endpoint methods. Basically it's these 2 requirement tickets: vaadin/vaadin-connect#215, vaadin/vaadin-connect#217.
It would be a bit inconvenient for people who try to use endpoints, which is the core feature of CCDM that they cannot start the server until they add a bean validator dependency to the pom file.
OK then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved
I think you should add |
It is unusual for a library to bring a starter in compile scope and the starter is not a requirement at all to get dependency management. If the version in the current dependency is removed and this project is configured to use Spring Boot's dependency management, the version of |
Hi @Artur-, I think probably using hibernate is better. Since
Also using What do you think? |
Fixes #606
This change is