{"action":"created","issue":{"url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/346","labels_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/346/comments","events_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/346/events","html_url":"https://github.com/joelittlejohn/jsonschema2pojo/issues/346","id":73144998,"number":346,"title":"Generate the wrong code","user":{"login":"simpleton","id":454498,"avatar_url":"https://avatars.githubusercontent.com/u/454498?v=3","gravatar_id":"","url":"https://api.github.com/users/simpleton","html_url":"https://github.com/simpleton","followers_url":"https://api.github.com/users/simpleton/followers","following_url":"https://api.github.com/users/simpleton/following{/other_user}","gists_url":"https://api.github.com/users/simpleton/gists{/gist_id}","starred_url":"https://api.github.com/users/simpleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpleton/subscriptions","organizations_url":"https://api.github.com/users/simpleton/orgs","repos_url":"https://api.github.com/users/simpleton/repos","events_url":"https://api.github.com/users/simpleton/events{/privacy}","received_events_url":"https://api.github.com/users/simpleton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-04T22:24:56Z","updated_at":"2015-05-05T06:49:01Z","closed_at":null,"body":"The library couldn't generate the correct code with below schema, it only generate the 'feed summary''s code.\r\n```json\r\n{\r\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\r\n  \"title\": \"home feeds list\",\r\n  \"description\": \"home feeds list\",\r\n  \"type\": \"array\",\r\n  \"items\": {\r\n    \"title\": \"feed summary\",\r\n    \"type\": \"object\",\r\n    \"properties\": {\r\n      \"name\": {\"type\": \"string\"},\r\n      \"name1\": {\"type\": \"string\"}\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe generated java code :\r\n```java\r\npackage com.example;\r\n\r\nimport java.util.HashMap;\r\nimport java.util.Map;\r\nimport javax.annotation.Generated;\r\nimport com.fasterxml.jackson.annotation.JsonAnyGetter;\r\nimport com.fasterxml.jackson.annotation.JsonAnySetter;\r\nimport com.fasterxml.jackson.annotation.JsonIgnore;\r\nimport com.fasterxml.jackson.annotation.JsonInclude;\r\nimport com.fasterxml.jackson.annotation.JsonProperty;\r\nimport com.fasterxml.jackson.annotation.JsonPropertyOrder;\r\n\r\n\r\n/**\r\n* feed summary\r\n* <p>\r\n* \r\n* \r\n*/\r\n@JsonInclude(JsonInclude.Include.NON_NULL)\r\n@Generated(\"org.jsonschema2pojo\")\r\n@JsonPropertyOrder({\r\n\"name\",\r\n\"name1\"\r\n})\r\npublic class Example {\r\n\r\n@JsonProperty(\"name\")\r\nprivate String name;\r\n@JsonProperty(\"name1\")\r\nprivate String name1;\r\n@JsonIgnore\r\nprivate Map<String, Object> additionalProperties = new HashMap<String, Object>();\r\n\r\n/**\r\n* \r\n* @return\r\n* The name\r\n*/\r\n@JsonProperty(\"name\")\r\npublic String getName() {\r\nreturn name;\r\n}\r\n\r\n/**\r\n* \r\n* @param name\r\n* The name\r\n*/\r\n@JsonProperty(\"name\")\r\npublic void setName(String name) {\r\nthis.name = name;\r\n}\r\n\r\n/**\r\n* \r\n* @return\r\n* The name1\r\n*/\r\n@JsonProperty(\"name1\")\r\npublic String getName1() {\r\nreturn name1;\r\n}\r\n\r\n/**\r\n* \r\n* @param name1\r\n* The name1\r\n*/\r\n@JsonProperty(\"name1\")\r\npublic void setName1(String name1) {\r\nthis.name1 = name1;\r\n}\r\n\r\n@JsonAnyGetter\r\npublic Map<String, Object> getAdditionalProperties() {\r\nreturn this.additionalProperties;\r\n}\r\n\r\n@JsonAnySetter\r\npublic void setAdditionalProperty(String name, Object value) {\r\nthis.additionalProperties.put(name, value);\r\n}\r\n\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/comments/98971463","html_url":"https://github.com/joelittlejohn/jsonschema2pojo/issues/346#issuecomment-98971463","issue_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/346","id":98971463,"user":{"login":"simpleton","id":454498,"avatar_url":"https://avatars.githubusercontent.com/u/454498?v=3","gravatar_id":"","url":"https://api.github.com/users/simpleton","html_url":"https://github.com/simpleton","followers_url":"https://api.github.com/users/simpleton/followers","following_url":"https://api.github.com/users/simpleton/following{/other_user}","gists_url":"https://api.github.com/users/simpleton/gists{/gist_id}","starred_url":"https://api.github.com/users/simpleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpleton/subscriptions","organizations_url":"https://api.github.com/users/simpleton/orgs","repos_url":"https://api.github.com/users/simpleton/repos","events_url":"https://api.github.com/users/simpleton/events{/privacy}","received_events_url":"https://api.github.com/users/simpleton/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T06:49:00Z","updated_at":"2015-05-05T06:49:00Z","body":"@joelittlejohn Thanks for your quick feedback. It works for me."}}