Skip to content

Strengthen requirements on optional vocabularies and unknown keywords #1376

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

Closed
wants to merge 1 commit into from

Conversation

handrews
Copy link
Contributor

This fixes #1300, and has been posted to clear up confusion over the difference between it and #1294 / #1295.

The explanation is in #1300, and if there is any controversy over this, or a desire to split the the two SHOULD-to-MUST changes to accept one and reject the other, then this draft PR should be closed unmerged and the discussion should take place in issue #1300. If this happens, anyone should feel free to close this- there is no need to check with me first.

This strengthens two SHOULDs to MUSTS:

  • Implementations MUST proceed with processing schemas using unrecognized optional vocabularies
  • Implementations MUST collect unknown keywords as annotations if such collection is supported and not disabled

This strengthens two SHOULDs to MUSTS:

* Implementations MUST proceed with processing schemas using
  unrecognized optional vocabularies
* Implementations MUST collect unknown keywords as annotations
  if such collection is supported and not disabled
@handrews
Copy link
Contributor Author

handrews commented Jan 18, 2023

See also https://github.com/orgs/json-schema-org/discussions/295#discussioncomment-4721326, issue #1340, and https://github.com/orgs/json-schema-org/discussions/241 for related ideas, some of which are compatible and others are incompatible.

@awwright awwright marked this pull request as ready for review March 27, 2023 09:04
Copy link
Member

@awwright awwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems exactly correct to me.

@gregsdennis
Copy link
Member

gregsdennis commented Aug 28, 2023

Closing this as

  1. We are discussing the viability of optional vocabularies in light of...
  2. Unknown keywords are now disallowed.

As such, this PR is moot.

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

Successfully merging this pull request may close these issues.

Strengthen requirements around optional vocabularies
3 participants