-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Dereferencing schemas without file extensions #76
Comments
JSON Schema $Ref Parser expects the That said, if you specifically don't want to include the file extension due to compatibility with other tooling, then your |
thanks for your prompt response, makes sense |
Hi
This is not an issue but more about how to use the library.
My question is similar to #22
I am trying to parse a RAML file
here when a schema is referencing another schema using
$ref
it so happens that the externally referenced file extension is not provided. ExampleWhile using the library it is not able to locate the schema file for
email
because it needs to search by extension.Currently I am getting around that by passing a custom
canRead
function tofile
dereferencing option. The customcanRead
function appends.schema
to thefile.url
propertyHowever I was wondering if there was a better way to achieve it.
The text was updated successfully, but these errors were encountered: