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

Non-encoded $ref on https://swagger.io/docs/specification/using-ref/#escape #250

Open
abhijitkane opened this issue Aug 11, 2019 · 1 comment

Comments

@abhijitkane
Copy link

On https://swagger.io/docs/specification/using-ref/#escape, there's a section that says:

For example, to refer to the path /blogs/{blog_id}/new~posts, you would use:

$ref: '#/paths/~1blogs~1{blog_id}~1new~0posts'

The / and ~ are encoded to ~1 and ~0 respectively. However, the curly braces around blog_id aren't percent-encoded (RFC3986), and this throws an error on editor.swagger.io:

Screen Shot 2019-08-11 at 11 17 08

The $ref should be #/paths/~1blogs~1%7Bblog_id%7D~1new~0posts

@bzmw
Copy link

bzmw commented Aug 30, 2019

@abhijitkane @hkosova is there a way I can can help move this query forward?

@hkosova hkosova removed their assignment Apr 4, 2022
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

3 participants