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

Remove javax.validation #227

Merged
merged 3 commits into from
Mar 14, 2022
Merged

Remove javax.validation #227

merged 3 commits into from
Mar 14, 2022

Conversation

froque
Copy link
Member

@froque froque commented Nov 25, 2021

Corrects a lack of consistency with exceptions and validations.
Removes javax.validation and relies only on BillyValidationException and Validate from commons-lang

  • document API change in CHANGELOG

Removes usage of ValidationException that was only used in invoices entries
builder.
There is no actual execution to validate the method parameters:

"Note that declaring method or constructor constraints itself does not
automatically cause their validation upon invocation of the executable.
Instead, the ExecutableValidator API (see Section 3.2, “Validating method
constraints”) must be used to perform the validation, which is often done
using a method interception facility such as AOP, proxy objects etc."

https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-validating-executable-constraints
Also removes implementation with test scope.
@froque froque merged commit 2944fa6 into master Mar 14, 2022
@froque froque deleted the remove_javax.validation branch July 5, 2022 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant