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

nesting anyOf under allOf is broken #25

Open
jonasfj opened this issue Oct 29, 2015 · 0 comments
Open

nesting anyOf under allOf is broken #25

jonasfj opened this issue Oct 29, 2015 · 0 comments

Comments

@jonasfj
Copy link

jonasfj commented Oct 29, 2015

I can't get this to work:

let v = themis.validator({
    id: 'test',
    allOf: [
      {
        anyOf: [
          {
            required: ['test']
          }
        ]
      }
    ]
});

let report = v({
    test: 2
}, 'test'); // gives report.valid = false

Works fine in other JSON validators... ironic since you're actually using this pattern in the feature to validate schemas... which is inherently broken as a result.. e.g. force_additional: true doesn't work in options.

However, the big issue here is probably that validation is broken...

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

No branches or pull requests

1 participant