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

Support jsonschema>=3.0 #202

Merged
merged 1 commit into from
Aug 13, 2019
Merged

Support jsonschema>=3.0 #202

merged 1 commit into from
Aug 13, 2019

Conversation

bmcfee
Copy link
Contributor

@bmcfee bmcfee commented Aug 9, 2019

This PR updates the jsonschema dependency to support >= 3.0, and fixes #193 .

The fix involves forcing the validator to use draft-04, which is now out of date. But this stop-gap solution works for now.

We should have a separate issue, tied to #92 , which could involve updating the schema definition itself to draft 7. There appear to be some good technical reasons for doing so (namely: relative uri references), but we can punt that down the road for now.

@bmcfee bmcfee added this to the 0.3.3 milestone Aug 9, 2019
@bmcfee bmcfee self-assigned this Aug 9, 2019
@bmcfee bmcfee requested a review from justinsalamon August 9, 2019 01:18
@bmcfee
Copy link
Contributor Author

bmcfee commented Aug 9, 2019

Tagging @justinsalamon for a CR request -- nothing major here, everything passes and works as expected.

@bmcfee
Copy link
Contributor Author

bmcfee commented Aug 12, 2019

For the record, this fix also seems to run just fine on jsonschema 2.6, so we don't lose any backward compatibility. It does bump the dependency version, so that shouldn't be a problem, but it's good to know.

@bmcfee bmcfee modified the milestones: 0.3.3, 0.3.4 Aug 12, 2019
@bmcfee bmcfee added the interoperability Making JAMS play nice with other packages label Aug 12, 2019
@bmcfee bmcfee removed the request for review from justinsalamon August 13, 2019 15:28
@bmcfee
Copy link
Contributor Author

bmcfee commented Aug 13, 2019

tagging @beasteers for opinions

Copy link

@beasteers beasteers left a comment

Choose a reason for hiding this comment

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

So I believe you said that Draft4 was the default before so that means we don't have to worry about falling back to previous drafts, correct?

But yeah, pretty straight forward. Looks legit 🎊

@bmcfee
Copy link
Contributor Author

bmcfee commented Aug 13, 2019

So I believe you said that Draft4 was the default before so that means we don't have to worry about falling back to previous drafts, correct?

Yup, that's correct. The jams schema was written with draft4 (it even says so explicitly), so here we're just making sure that the right validator is being used.

@bmcfee bmcfee merged commit 9088b87 into master Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement interoperability Making JAMS play nice with other packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support jsonschema >= 3.0
2 participants