-
-
Notifications
You must be signed in to change notification settings - Fork 591
Allow fetching of subschemas from file URLs #132
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
Comments
Hey! So, E.g. if I have I should mention that you can add your own scheme handlers to a ref resolver if you'd like too (see the |
Ahh, you're absolutely right. Not sure what I was doing wrong earlier, but it clearly works fine with a 'file:mydir/myschema.txt' URI. Thanks for setting me straight! |
No worries :) glad it works for you. |
Hi! "$ref":"file://f2.json" ? |
Ok, I figured out myself: |
I love this validator! But one feature I'd like to see is for it to be able to load referenced sub-schemas from file as well as by URL.
I'd be happy to contribute this feature if it's desired, I'd just like to know how the file URL should be specified (in contrast to a typical HTTP URL). Should I use file:/// ? And what about relative file paths? I figure relative to the script path makes the most sense.
I already have this feature mostly working in my own fork, but will clean it up and submit a pull request soon.
Thoughts?
The text was updated successfully, but these errors were encountered: