{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1882","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1882/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1882/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1882/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1882","id":127306355,"number":1882,"title":"$ref in response example is not correctly processed","user":{"login":"paulprogrammer","id":4042273,"avatar_url":"https://avatars.githubusercontent.com/u/4042273?v=3","gravatar_id":"","url":"https://api.github.com/users/paulprogrammer","html_url":"https://github.com/paulprogrammer","followers_url":"https://api.github.com/users/paulprogrammer/followers","following_url":"https://api.github.com/users/paulprogrammer/following{/other_user}","gists_url":"https://api.github.com/users/paulprogrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/paulprogrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulprogrammer/subscriptions","organizations_url":"https://api.github.com/users/paulprogrammer/orgs","repos_url":"https://api.github.com/users/paulprogrammer/repos","events_url":"https://api.github.com/users/paulprogrammer/events{/privacy}","received_events_url":"https://api.github.com/users/paulprogrammer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-18T20:36:33Z","updated_at":"2016-01-18T23:30:55Z","closed_at":null,"body":"I have a responses block that uses `$ref` to include an example:\r\n\r\n```yaml\r\n      responses:\r\n        200:\r\n          description: Success\r\n          schema:\r\n            $ref: 'profile-models.yaml#/ProfileSearchResponse'\r\n          examples:\r\n            application/json:\r\n              $ref: 'ProfileExample.yaml#/ProfileSearchResponseExample'\r\n```\r\n\r\nThe `$ref` for the schema is correctly processed and rendered in the swagger-ui, but the `$ref` for the example shows the following in the swagger-ui display:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4042273/12402173/6cacd790-bde8-11e5-87de-a4f478a23376.png)\r\n\r\nI would expect that the content of the `$ref` would appear as if it were inline."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/172681167","html_url":"https://github.com/swagger-api/swagger-ui/issues/1882#issuecomment-172681167","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1882","id":172681167,"user":{"login":"paulprogrammer","id":4042273,"avatar_url":"https://avatars.githubusercontent.com/u/4042273?v=3","gravatar_id":"","url":"https://api.github.com/users/paulprogrammer","html_url":"https://github.com/paulprogrammer","followers_url":"https://api.github.com/users/paulprogrammer/followers","following_url":"https://api.github.com/users/paulprogrammer/following{/other_user}","gists_url":"https://api.github.com/users/paulprogrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/paulprogrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulprogrammer/subscriptions","organizations_url":"https://api.github.com/users/paulprogrammer/orgs","repos_url":"https://api.github.com/users/paulprogrammer/repos","events_url":"https://api.github.com/users/paulprogrammer/events{/privacy}","received_events_url":"https://api.github.com/users/paulprogrammer/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T23:30:54Z","updated_at":"2016-01-18T23:30:54Z","body":"I opened an issue [in the specification #544](https://github.com/OAI/OpenAPI-Specification/issues/544) to address this."}}