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

$ref with JSON pointer containing ~1 (encoded /) not supported #336

Open
hiddewie opened this issue Sep 24, 2021 · 0 comments
Open

$ref with JSON pointer containing ~1 (encoded /) not supported #336

hiddewie opened this issue Sep 24, 2021 · 0 comments
Assignees

Comments

@hiddewie
Copy link

I have document with a $ref for an operation of the form

openapi: 3.0.1
# ...
paths:
  /resource/test:
    $ref: `file.yaml#/paths/~1resource~1test`

and file.yaml contains

paths:
  /resource/test:
    summary: ... 
    description: ...
    # ...

Committee gives an error that the $ref is not an URI, while it is a valid URI with a fragment containing a JSON pointer.

If I make the $ref into something like file.yaml#/paths/resource, and replace the path in file.yaml with resource, it does work and Committee gives no errors.

JSON pointer spec: https://datatracker.ietf.org/doc/html/rfc6901

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

No branches or pull requests

2 participants