{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1257","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1257/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1257/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1257","id":107230827,"number":1257,"title":"[Objective-C][Swift] Lists of enum make the objc and swift generator crash","user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-18T16:05:11Z","updated_at":"2015-09-19T07:20:58Z","closed_at":null,"body":"The following spec makes the objc and swift generators crash silently\r\n```json\r\n{\r\n    \"definitions\": {\r\n        \"Foo\": {\r\n            \"properties\": {\r\n                \"foo\": {\r\n                    \"type\": \"string\",\r\n                    \"items\": {\r\n                        \"type\":\"string\",\r\n                        \"enum\": [\"foo\", \"bar\"]\r\n                     }\r\n                 }\r\n             }\r\n        }\r\n    },\r\n    \"info\": {\r\n        \"title\": \"Foo\",\r\n        \"version\": \"1.0.0\"\r\n    },\r\n    \"paths\": {},\r\n    \"swagger\": \"2.0\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/141632509","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1257#issuecomment-141632509","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1257","id":141632509,"user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T07:20:58Z","updated_at":"2015-09-19T07:20:58Z","body":"Oops, wrong copy/pasting ! The crash is with array, of course. Thanks for pointing that out.\r\nThe problematic definition is:\r\n```json\r\n{\r\n    \"definitions\": {\r\n        \"Foo\": {\r\n            \"properties\": {\r\n                \"foo\": {\r\n                    \"type\": \"array\",\r\n                    \"items\": {\r\n                        \"type\":\"string\",\r\n                        \"enum\": [\"foo\", \"bar\"]\r\n                     }\r\n                 }\r\n             }\r\n        }\r\n    },\r\n    \"info\": {\r\n        \"title\": \"Foo\",\r\n        \"version\": \"1.0.0\"\r\n    },\r\n    \"paths\": {},\r\n    \"swagger\": \"2.0\"\r\n}\r\n```\r\n"}}