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

Go To Definition: Support Path References #129

Closed
tedepstein opened this issue Jun 2, 2016 · 3 comments
Closed

Go To Definition: Support Path References #129

tedepstein opened this issue Jun 2, 2016 · 3 comments

Comments

@tedepstein
Copy link
Collaborator

Path References don't seem to be supported yet. These are difficult because of the required substitutions. At a minimum, path parameters will contain ~1 sequences, which are tokens for forward slashes. Other substitutions are discussed in #59, and some of these can cause the URI to be invalid.

Still, to the extent possible, we would like to support these eventually.

@ghillairet
Copy link
Member

I confirm this is not working in branch master, but it does in branch 59.
The format for a $ref to a path should be like:

$ref: '#/paths/~1pets~1{id}'

This will point to

paths:
  '/pets/{id}':

@tedepstein
Copy link
Collaborator Author

OK, I see that there's some work on task/59 and task/59-json-pointers that hasn't been merged yet. So I'll re-test after you've opened a pull request for #59 and we've merged these changes.

@tedepstein
Copy link
Collaborator Author

This works now.

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