brennon
6 years agoNew Contributor
$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
...
- 6 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: