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

add ability to use validation checker with classes and inheritance #14

Merged
merged 4 commits into from
Feb 20, 2025

Conversation

SirCotare
Copy link
Contributor

  • add ability to use validation checker with classes and inheritance even without an allArgsConstructor
  • add ability to register validation rules with an registrar function that can be re-used

…en without an allArgsConstructor; add ability to register validation rules with an registrar function that can be re-used
@SirCotare SirCotare self-assigned this Feb 20, 2025
@SirCotare SirCotare requested a review from ThoSap February 20, 2025 09:04
Copy link
Contributor

@ThoSap ThoSap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one 👌🏼
This for sure makes validation testing easier with inheritance.

Comment on lines +349 to 352
while (clazz != null) {
fields.addAll(Arrays.asList(clazz.getDeclaredFields()));
clazz = clazz.getSuperclass();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one 👌🏼

…ationAssertTest.java

Co-authored-by: Thomas Sapelza <thomas.sapelza@aboutbits.it>
@SirCotare SirCotare merged commit f57ea69 into main Feb 20, 2025
1 check passed
@SirCotare SirCotare deleted the validation_checking branch February 20, 2025 10:48
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.

2 participants