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 enforce.allOf compound for AND style requirements #521
Labels
Comments
ealush
added
feature
New feature or request
good first issue
Good for newcomers
enforce
labels
Nov 23, 2020
Moses3301
pushed a commit
to Moses3301/vest
that referenced
this issue
Nov 29, 2020
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 29, 2020
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 29, 2020
Closed
Closed
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 30, 2020
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 30, 2020
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 30, 2020
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 30, 2020
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 30, 2020
Moses3301
added a commit
to Moses3301/vest
that referenced
this issue
Nov 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to anyOf, we need an AND relationship rule:
allOf
.In the following example
value
must both be a string and longer than 10.This can be even more useful when combined with templates and shape validations:
Developer guidelines
Create a new file called
allOf
right next to anyOf. It should be pretty much the same, implementing the rules.some logic with some other counter mechanism.To actually have it used by enforce, add it to this compounds export
Add a new test file here and test different scenarios
Add suitable types here and here (basically duplicate anyOf).
If you feel like it, also add suitable docs for this feature here
The text was updated successfully, but these errors were encountered: