-
-
Notifications
You must be signed in to change notification settings - Fork 314
Reverse "contains" <-> "minContains"/"maxContains" dependency #1312
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
Conversation
I think this wording works, but do we want to have |
@gregsdennis this wording was intended to specify the behavior in terms of annotations, and then note an alternative (which we do for some other keywords as well). What are you looking for that isn't there? Do you want more explicit discussion of the consumption of annotations in the description of "contains"? |
I was thinking that Currently the wording you have for min/max doesn't say anything about annotations. I think this needs to be added. Essentially, the dependency is on the annotation rather than on the other keyword directly. |
Lines 2530 and 2544 say:
|
Okay, yeah.... I missed that. |
@gregsdennis no worries, the mentions are very brief! It actually took me a moment to find them again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small typo, but otherwise looks good.
This moves the keywords with minamal changes to make sure the cross-referencing (which no longer goes between two documents) makes sense. A subsequent commit will fix the direction of the dependency.
This fixes the problem where "minContains": 0 effectively un-failed "contains". The observable validation behavior is unchanged. Instead of "minContains" and "maxContains" reading annotations from "contains", "contains" reads annotations from "minContains" and "maxContains" and makes the only assertion decision. This solution was first proposed by Karen Etheridge.
The force-push just now was to rebase and (more importantly) credit @karenetheridge for first coming up with the idea in the commit log. |
Fixes #1311. Fixes #1161 by eliminating the confusing situation that produced the concern.