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

Add swagger escape character https://swagger.io/docs/specification/u… #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apilabeyes
Copy link

…sing-ref/

@ErikWittern
Copy link
Owner

ErikWittern commented Feb 15, 2022

@apilabeyes Thanks for the PR. Would you mind adding a test case for this behaviour also?

Consider also that escaping should only take place in the parts of a reference that uses these characters literally. Like in the official example, the reference to path path /blogs/{blog_id}/new~posts becomes $ref: '#/paths/~1blogs~1{blog_id}~1new~0posts' after escaping. So there are still slashes and tildes left in the final reference string. Does your implementation account for that?

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

Successfully merging this pull request may close these issues.

3 participants