Skip to content

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