-
Notifications
You must be signed in to change notification settings - Fork 358
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
Validate against a schema using $ref with relative filepath #262
Comments
Can you paste the full schema? |
The two schema files: Event.json
Success.json
Since I am doing validation in a test, I was able to get this working by putting the schemas in testdata and by loading the root schema (Success.json) with So I guess my question now is: is recursively resolving relative $ref's with |
So in short. When using If you can keep things simple just use the To answer your question directly: It does, but a relative |
I'm trying to come up with a way to validate against a json schema (7.0) that makes use of a $ref to a relative filepath. The schema is of the form:
When I load this schema I get the
reference is not canonical
error. This seems to be because I'm not passing a full URI. Is it possible to validate against this schema?The text was updated successfully, but these errors were encountered: