{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/212","labels_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/212/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/212/events","html_url":"https://github.com/swagger-api/swagger-spec/issues/212","id":49333333,"number":212,"title":"schema definitions of type array fail validation","user":{"login":"paulhill","id":754053,"avatar_url":"https://avatars.githubusercontent.com/u/754053?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhill","html_url":"https://github.com/paulhill","followers_url":"https://api.github.com/users/paulhill/followers","following_url":"https://api.github.com/users/paulhill/following{/other_user}","gists_url":"https://api.github.com/users/paulhill/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhill/subscriptions","organizations_url":"https://api.github.com/users/paulhill/orgs","repos_url":"https://api.github.com/users/paulhill/repos","events_url":"https://api.github.com/users/paulhill/events{/privacy}","received_events_url":"https://api.github.com/users/paulhill/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-19T05:44:15Z","updated_at":"2015-03-06T20:00:14Z","closed_at":"2015-03-06T20:00:14Z","body":"I use 'type: array' json schema to represent typed array responses from my API.\r\nSchema validation chokes on this (and swagger-ui needs to render them correctly too)\r\n\r\n```\r\n{\r\n\t\"level\": \"error\",\r\n\t\"domain\": \"validation\",\r\n\t\"keyword\": \"type\",\r\n\t\"message\": \"instance type (array) does not match any allowed primitive type (allowed: [\\\"object\\\"])\",\r\n\t\"schema\": {\r\n\t\t\"loadingURI\": \"http://swagger.io/v2/schema.json#\",\r\n\t\t\"pointer\": \"/definitions/schema\"\r\n\t},\r\n\t\"instance\": {\r\n\t\t\"pointer\": \"/definitions/required\"\r\n\t}\r\n}\r\n```"}}