Skip to content
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

"JSON Pointer points to missing location" after upgrade to v3.0.0 #113

Closed
Martin456 opened this issue Apr 28, 2017 · 4 comments
Closed

"JSON Pointer points to missing location" after upgrade to v3.0.0 #113

Martin456 opened this issue Apr 28, 2017 · 4 comments

Comments

@Martin456
Copy link
Contributor

Hello,
I think I am experiencing issues caused by this change in v3.0.0 removed options.relativeBase.
I am using CLI interface
json-refs resolve index.yaml -y --filter relative > output.yaml
where index.yaml contains references to other yaml files in the subdictionaries.
I receive a lot of messages "JSON Pointer points to missing location" caused by the fact that the yaml files in the subdictionaries contain links to #/definitions/
But those are the links that I don't want to resolve.
In version 2.1.6 it worked flawlessly.
Thank you
Martin

@whitlockjc
Copy link
Owner

Any chance the unresolved references in the relative files are local references but they are not contained in the containing document? If so, this was an accidental feature removed from v3.0.0: #100

@whitlockjc
Copy link
Owner

Long story short, if you have #/definitions/Person defined in root.json and you reference it as #/definitions/Person from child.json, that use to work prior to v3.0.0 but it was an accidental feature. Removing it made json-refs spec-compliant as mentioned in the referenced issues from #100

@Martin456
Copy link
Contributor Author

Hello Jeremy,
you are probably right about the root cause of my issue. I'll try to fix it as it's mentioned in #100 .
Thank you very much for your support
Martin

@whitlockjc
Copy link
Owner

Any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants