{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/306","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/306/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/306/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/306","id":59532565,"number":306,"title":"Top level schema classes which are arrays are not generated correctly","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Component-Google-APIs","name":"Component-Google-APIs","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Milestone-CodeGenVersion1.4.0","name":"Milestone-CodeGenVersion1.4.0","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-02T19:22:33Z","updated_at":"2015-03-02T19:22:35Z","closed_at":"2015-03-02T19:22:33Z","body":"```\n\nIn translate we see this entry in schemas.\n\n \"DetectionsResource\": {\n  \"id\": \"DetectionsResource\",\n  \"type\": \"array\",\n  \"description\": \"An array of languages which we detect for the given text The most likely language list first.\",\n  \"items\": {\n   \"type\": \"object\",\n   \"properties\": {\n    \"confidence\": {\n     \"type\": \"number\",\n     \"description\": \"The confidence of the detection resul of this language.\",\n     \"format\": \"float\"\n    },\n    .....\n   }\n  }\n }\n\nThe code that gets generated for DetectionsResource.java is\nclass DetectionsResource extends GenericJson {\n @Key\n java.util.List<DetectionsResourceItems> items;\n...\n\nBut it should actually be\nclass DetectionsResource extends List<DetectionsResourceItems> {\n...\n\nbecause 'items' is not actually in the JSON stream.\n\n\n```\n\nOriginal issue reported on code.google.com by `rmis...@google.com` on 27 Sep 2011 at 4:02"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76789663","html_url":"https://github.com/chrsmith/google-api-java-client/issues/306#issuecomment-76789663","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/306","id":76789663,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T19:22:34Z","updated_at":"2015-03-02T19:22:34Z","body":"\n\nOriginal comment by `ai...@google.com` on 27 Sep 2011 at 7:55"}}