brennon
5 years agoNew Contributor
Solved
$ref in response example relative to response example
I am using a $ref in a Swagger 2.0 API response example that, when the response is returned, is interpreted correctly as relative to the response itself:
responses:
200:
description: OK
...
- 5 years ago
Hi Brennon,
Your definition is perfectly valid.
Swagger UI and Swagger Editor are not supposed to resolve those $ref: "#/refs/..." that are part of example values. The issue is tracked here: