Skip to content

Conversation

@ntgussoni
Copy link
Contributor

Paths with strings like /foo/{bar} are URL encoded, / and ~ are escaped (see: https://swagger.io/docs/specification/using-ref/)

When dereferencing examples, we need to do the opposite on the $ref string otherwise it doesn't match the object key and hence the example is not found.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 9, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ntgussoni ntgussoni merged commit 781a7ec into main Sep 10, 2021
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.

2 participants