-
-
Notifications
You must be signed in to change notification settings - Fork 228
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 ref of refs in the same path #21
Comments
That's odd. Can you post a sample of how you're calling JSON Schema $Ref Parser? I suspect that it may be something wrong with the parameters or usage. Also, are you running this in Node.js or in a web browser? |
I'm just using it like this:
running in a web browser. I will do more testing tomorrow if you say it's supposed to work. |
Yeah, that should totally work. I do essentially that same thing all the time. And I have plenty of tests that cover that use-case as well. There's gotta be some difference we're missing here. Can you try using the un-minified version of JSON Schema $Ref Parser and then stepping into the code to see what's going on? |
I'm closing this since I had to move to something else. I was probably using it wrong... |
I'm trying to dereference some schemas, but seems that it does not resolve the urls the way I need... I'm probably missing some option here.
I have all the schemas sitting on /schemas:
/schemas/a.json
/schemas/b.json
/schemas/c.json
So
/schemas/a.json
:dereferences well, but
/schemas/b.json
:is trying to find the schema under
/schemas/b.json/
:GET https://localhost:8080/schemas/b.json/c.json/ 404 (Not Found)
Error downloading https://localhost:8080/schemas/b.json/c.json/
The text was updated successfully, but these errors were encountered: