Skip to content

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

Merged
SirCotare merged 4 commits into
mainfrom
validation_checking
Feb 20, 2025
Merged

add ability to use validation checker with classes and inheritance#14
SirCotare merged 4 commits into
mainfrom
validation_checking

Conversation

@SirCotare

Copy link
Copy Markdown
Member
  • 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

@ThoSap ThoSap left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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
@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