Skip to content

Clarify annotation collection with applicators #769

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

Merged
merged 2 commits into from
Aug 9, 2019

Conversation

handrews
Copy link
Contributor

Fixes #768. No release notes because the part about "contains"
not collecting annotations was never in the release notes, and
it wasn't in the previous draft either.

In particular, "contains" collects annotations. I'm not sure
where the exception came from, as it was not present in the
previous draft (to the extent that that draft mentioned
annotations).

The CREF actually did talk about annotation collection so
apparently this was a bit of a muddled mess anyway.

This makes "contains" behave like all other applicators,
producing both assertion and annotation results.

In particular, "contains" collects annotations.  I'm not sure
where the exception came from, as it was not present in the
previous draft (to the extent that that draft mentioned
annotations).

The CREF actually did talk about annotation collection so
apparently this was a bit of a muddled mess anyway.

This makes "contains" behave like all other applicators,
producing both assertion and annotation results.
You have to look at all subschemas in the cases in question,
which may or may not result in actual collection of annotations,
depending on the assertion outcomes of the individual subschemas.
@handrews
Copy link
Contributor Author

handrews commented Aug 9, 2019

@gregsdennis I did an update a while back for one of your comments, does it look OK now? I'd like to merge this if so.

@handrews handrews merged commit ed9bdf8 into json-schema-org:master Aug 9, 2019
@handrews handrews deleted the appl-annot branch August 9, 2019 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify: all applicators collect annotations, including "contains"
2 participants