{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1287","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1287/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1287/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1287","id":76407054,"number":1287,"title":"Uncaught TypeError: Cannot read property '$ref' of undefined (Swagger-spec 1.2)","user":{"login":"ksimka","id":1818850,"avatar_url":"https://avatars.githubusercontent.com/u/1818850?v=3","gravatar_id":"","url":"https://api.github.com/users/ksimka","html_url":"https://github.com/ksimka","followers_url":"https://api.github.com/users/ksimka/followers","following_url":"https://api.github.com/users/ksimka/following{/other_user}","gists_url":"https://api.github.com/users/ksimka/gists{/gist_id}","starred_url":"https://api.github.com/users/ksimka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksimka/subscriptions","organizations_url":"https://api.github.com/users/ksimka/orgs","repos_url":"https://api.github.com/users/ksimka/repos","events_url":"https://api.github.com/users/ksimka/events{/privacy}","received_events_url":"https://api.github.com/users/ksimka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-14T16:08:16Z","updated_at":"2015-05-14T16:31:58Z","closed_at":"2015-05-14T16:31:58Z","body":"```\r\nUncaught TypeError: Cannot read property '$ref' of undefined\r\nSwaggerOperation @ swagger-client.js:2109\r\nSwaggerResource.addOperations @ swagger-client.js:1862\r\nSwaggerResource.addApiDeclaration @ swagger-client.js:1791\r\nobj.on.response @ swagger-client.js:1739\r\nJQueryHttpClient.execute.obj.complete @ swagger-client.js:2833\r\np.Callbacks.k @ jquery-1.8.0.min.js:2\r\np.Callbacks.l.fireWith @ jquery-1.8.0.min.js:2\r\ny @ jquery-1.8.0.min.js:2\r\np.support.ajax.p.ajaxTransport.send.d @ jquery-1.8.0.min.js:2\r\n```\r\n\r\nswagger-client.js:2108\r\n```js\r\nif (type === 'array') {\r\n      type = 'array[' + (param.items.$ref ? param.items.$ref : param.items.type) + ']';\r\n    }\r\n```"}}