-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
"Schema not found" error after updating to gem version 2.8.1 #424
Comments
I'm afraid that the gem only supports draft 5 and below. Previously the gem would accept draft 6 but it's behaviour was undefined |
That's because the 'draft 6' schema in this gem is currently identified as:
Context: #376 |
Ok, but with Whereas with http://json-schema.org/draft/schema# --> 404 |
At one point that was correct, but they kept changing the url. Regardless, the gem doesn't support draft 6 syntax, and I'd recommend using draft 5 until we have a chance to fix that |
Sorry to post on a 2 year old thread, but just hit this now & wondering if anything has changed, and whether "draft" refers to the json-api spec or the schema trying to describe it, since the spec has been v1 for a while? |
To answer my own question (sorry for the noise!) it looks like "draft" refers to the json-schema version, and this gem is unmaintained / incompatible with the version the jsonapi schema is written in, so better to try with https://github.com/davishmcclurg/json_schemer and adapt the rspec matcher in that post to the other gem. I ended up here while following a Thoughtbot blog post + googling for a pre-existing json-api schema. |
hi, bumping this issue as I have encountered the same issue in v3.0.0 the README now states that v3.0.0 supports Draft 6, but it does not support it via the
but does work if the
it seems that the URI for the meta-schema at this line needs to be updated to be able to correctly use draft v6: |
I'm writing API tests with RSpec and I do schema validation as part of the tests. Everything is working fine with
json-schema
gem version2.8.0
.After updating
json-schema
gem to version2.8.1
I get an errorExample schema I use
The text was updated successfully, but these errors were encountered: