{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/906","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/906/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/906/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/906/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/906","id":56533489,"number":906,"title":"Parameter $refs are not handled correctly ","user":{"login":"duncanhall","id":1502359,"avatar_url":"https://avatars.githubusercontent.com/u/1502359?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanhall","html_url":"https://github.com/duncanhall","followers_url":"https://api.github.com/users/duncanhall/followers","following_url":"https://api.github.com/users/duncanhall/following{/other_user}","gists_url":"https://api.github.com/users/duncanhall/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanhall/subscriptions","organizations_url":"https://api.github.com/users/duncanhall/orgs","repos_url":"https://api.github.com/users/duncanhall/repos","events_url":"https://api.github.com/users/duncanhall/events{/privacy}","received_events_url":"https://api.github.com/users/duncanhall/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-04T14:34:13Z","updated_at":"2015-02-04T14:35:52Z","closed_at":"2015-02-04T14:35:52Z","body":"When specifying a top level `parameter` and then referencing it in a `path`, swagger-ui does not expand the reference at all:\r\n\r\n![swagger-ui-ref-bug](https://cloud.githubusercontent.com/assets/1502359/6042225/d7e4f4be-ac7a-11e4-906b-63d8029055ea.png)\r\n\r\n\r\nThis can be tested with this minimal schema:\r\n\r\n```\r\n{\r\n    \"swagger\": \"2.0\",\r\n    \"host\": \"qa.test.com\",\r\n    \"basePath\": \"/api/v2\",\r\n    \"info\": {\r\n        \"version\": \"0.2.0\",\r\n        \"title\": \"Parameter $ref test\",\r\n        \"description\": \"Example\"\r\n    },\r\n    \"parameters\": {\r\n        \"start\": {\r\n            \"name\": \"start\",\r\n            \"in\": \"query\",\r\n            \"description\": \"The starting index to offset results from\",\r\n            \"type\": \"integer\",\r\n            \"default\": 0,\r\n            \"minimum\": 0\r\n        }\r\n    },\r\n    \"paths\": {\r\n        \"/item\": {\r\n            \"get\": {\r\n                \"description\": \"Return some items\",\r\n                \"parameters\": [\r\n                    {\r\n                        \"name\": \"type\",\r\n                        \"in\": \"query\",\r\n                        \"description\": \"A type of item\",\r\n                        \"required\": true,\r\n                        \"type\": \"string\",\r\n                        \"format\": \"string\"\r\n                    },\r\n                    {\r\n                        \"$ref\": \"#/parameters/start\"\r\n                    }\r\n                ],\r\n                \"responses\": {\r\n                    \"200\": {\r\n                        \"description\": \"Successful response\"\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThe very same schema loaded into the swagger editor works as exepcted:\r\n\r\n![swagger-editor](https://cloud.githubusercontent.com/assets/1502359/6042149/679fd462-ac7a-11e4-994f-7a1395aeb11d.png)\r\n"}}