{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-js/issues/215","labels_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/215/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/215/events","html_url":"https://github.com/swagger-api/swagger-js/issues/215","id":55698122,"number":215,"title":"Rendered Array missing","user":{"login":"retrospectacus","id":305527,"avatar_url":"https://avatars.githubusercontent.com/u/305527?v=3","gravatar_id":"","url":"https://api.github.com/users/retrospectacus","html_url":"https://github.com/retrospectacus","followers_url":"https://api.github.com/users/retrospectacus/followers","following_url":"https://api.github.com/users/retrospectacus/following{/other_user}","gists_url":"https://api.github.com/users/retrospectacus/gists{/gist_id}","starred_url":"https://api.github.com/users/retrospectacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retrospectacus/subscriptions","organizations_url":"https://api.github.com/users/retrospectacus/orgs","repos_url":"https://api.github.com/users/retrospectacus/repos","events_url":"https://api.github.com/users/retrospectacus/events{/privacy}","received_events_url":"https://api.github.com/users/retrospectacus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-28T00:44:56Z","updated_at":"2015-01-28T00:49:43Z","closed_at":null,"body":"I have the following JSON which describes the schema of a 200-code response.\r\n\r\n>        \"Array Of Trades\": {\r\n>            \"required\": [ \"Trades\" ],\r\n>            \"properties\": {\r\n>                \"Trades\": {\r\n>                    \"description\": \"Search results\",\r\n>                    \"type\": \"array\",\r\n>                    \"$ref\": \"Trade\"\r\n>                }\r\n>            }\r\n>        }\r\n\r\nIt is rendered as: `Trades (Array[undefined): Search results` - the closing square bracket is missing. (I think \"undefined\" should be \"Trade\" but that is another issue)"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-js/issues/comments/71760880","html_url":"https://github.com/swagger-api/swagger-js/issues/215#issuecomment-71760880","issue_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/215","id":71760880,"user":{"login":"retrospectacus","id":305527,"avatar_url":"https://avatars.githubusercontent.com/u/305527?v=3","gravatar_id":"","url":"https://api.github.com/users/retrospectacus","html_url":"https://github.com/retrospectacus","followers_url":"https://api.github.com/users/retrospectacus/followers","following_url":"https://api.github.com/users/retrospectacus/following{/other_user}","gists_url":"https://api.github.com/users/retrospectacus/gists{/gist_id}","starred_url":"https://api.github.com/users/retrospectacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retrospectacus/subscriptions","organizations_url":"https://api.github.com/users/retrospectacus/orgs","repos_url":"https://api.github.com/users/retrospectacus/repos","events_url":"https://api.github.com/users/retrospectacus/events{/privacy}","received_events_url":"https://api.github.com/users/retrospectacus/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T00:49:43Z","updated_at":"2015-01-28T00:49:43Z","body":"This was my fix,\r\n\r\n> @@ -1288,10 +1288,11 @@\r\n>  getStringSignature = function(obj) {\r\n>    var str = '';\r\n>    if(obj.type === 'array') {\r\n> -    obj = (obj.items || obj['$ref'] || {});\r\n>      str += 'Array[';\r\n> +    str += getStringSignature((obj.items || obj['$ref'] || {}))\r\n> +    str += ']';\r\n>    }\r\n> -  if(obj.type === 'integer' && obj.format === 'int32')\r\n> +  else if(obj.type === 'integer' && obj.format === 'int32')\r\n>      str += 'integer';\r\n>    else if(obj.type === 'integer' && obj.format === 'int64')\r\n>      str += 'long';\r\n> @@ -1313,8 +1314,6 @@\r\n>      str += simpleRef(obj['$ref']);\r\n>    else\r\n>      str += obj.type;\r\n> -  if(obj.type === 'array')\r\n> -    str += ']';\r\n>    return str;\r\n>  }\r\n"}}