We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following class hierarchy
class Root { Parent parent; } class Parent { List<Child> children; } class Child { String name; }
The validation of children is ignored.
var childValidator = ValidatorBuilder.of(Chidl.class) .constraint(Child::getName, "name", Constraint::notNull) .build(); var parentValidator = ValidatorBuilder.of(Parent.class) .forEach(Parent::getChildrent, "children", childValidator) .build(); var validator = ValidatorBuilder.of(Root.class) .nest(Root::getParent, "parent", parentValidator) .build()
The issue is that nested collection validators are not appended to the main validator. Please see https://github.com/making/yavi/blob/develop/src/main/java/am/ik/yavi/builder/ValidatorBuilder.java#L694
The text was updated successfully, but these errors were encountered:
Append nested collection validators to the main validator (#91)
8d5c740
closes gh-90 Co-authored-by: sdobrovolschi <sdobrovolschi@usenergysolutions.us> Co-authored-by: Toshiaki Maki <tmaki@pivotal.io>
Successfully merging a pull request may close this issue.
Given the following class hierarchy
The validation of children is ignored.
The issue is that nested collection validators are not appended to the main validator. Please see https://github.com/making/yavi/blob/develop/src/main/java/am/ik/yavi/builder/ValidatorBuilder.java#L694
The text was updated successfully, but these errors were encountered: