-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
Still struggling with local "$ref"s #684
Comments
Hey @demitri -- sorry you're having trouble. I do apologize -- I wish I had time and energy to be able to give direct support, but unfortunately I just don't at this point. There are some options for how you may get some help -- StackOverflow is unfortunately one, and the JSON Schema (specification) slack is another one, which has lots of folks who may be able to give direct real-time help. It's also unfortunately possible you're encountering a known Going to close this as until/unless you find a specific bug (a new one besides the 2 above), it's just going to likely sit stale here on the issue tracker, but I certainly do hope you figure it out. |
Hi @Julian. I spent a non-trivial amount of time working on this; I am aware of the other issues and have read through them several times. I have stepped through the jsonschema code to see what the problem might be. What is not clear is what the code should look like, regardless of whether it works or not. The |
Hello, I came up with a small helper function that preloads the local schema fragments to RefResolver cache: https://gist.github.com/mrtj/d59812a981da17fbaa67b7de98ac3d4b |
Hi,
I'm still struggling with making local
$ref
s work. I've tried basically every permutation I can think of or have read about (see: #570 and here and here). Here is my minimum example; all files placed in the same directory:file:
gaia_dr2_record_response.json
file:
gaia_dr2_properties.json
file:
test.py
I've tried many variations on
base_uri
in the resolver including path to files and URI to the file itself. I get that theRefResolver
needs to know how to resolve the reference, but I don't know how it's working to know what to properly pass to it. Seemingly nothing I pass toRefResolver
makes a difference (evenbase_uri='ffff'
!).Also, the I try to check the schema (commented out code above), it gives me this error which I'm not sure what to make of:
When I simply copy and paste the referred to segment into the original schema, the check and validation works.
Any help appreciated!
The text was updated successfully, but these errors were encountered: