Skip to content

Validator does not validate correctly if object has multiple Array fields #12

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

Open
havetisyan opened this issue Jul 4, 2017 · 1 comment
Labels

Comments

@havetisyan
Copy link
Member

If I have the following rdl:

type DomainTemplate Struct {
Array templateNames;
Array params (optional);
}

When validating this object against its schema, it only validates the templateNames array and just ignores params array. Quick look at the code shows that it returns the value of the first array validation rather than only returning if there is a failure and continuing with the other fields.

@boynton boynton added the bug label Jul 6, 2017
havetisyan pushed a commit to havetisyan/ardielle-java that referenced this issue Jul 7, 2017
boynton added a commit that referenced this issue Jul 12, 2017
Validator does not validate correctly if object has multiple Array fields #12
@boynton
Copy link
Collaborator

boynton commented Jul 18, 2017

Release as part of 1.4.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants