{"action":"created","issue":{"url":"https://api.github.com/repos/json-schema-form/angular-schema-form/issues/625","repository_url":"https://api.github.com/repos/json-schema-form/angular-schema-form","labels_url":"https://api.github.com/repos/json-schema-form/angular-schema-form/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/json-schema-form/angular-schema-form/issues/625/comments","events_url":"https://api.github.com/repos/json-schema-form/angular-schema-form/issues/625/events","html_url":"https://github.com/json-schema-form/angular-schema-form/issues/625","id":125819825,"number":625,"title":"Provide more useful error than \"Invalid type, expected array\"","user":{"login":"upq","id":5780280,"avatar_url":"https://avatars.githubusercontent.com/u/5780280?v=3","gravatar_id":"","url":"https://api.github.com/users/upq","html_url":"https://github.com/upq","followers_url":"https://api.github.com/users/upq/followers","following_url":"https://api.github.com/users/upq/following{/other_user}","gists_url":"https://api.github.com/users/upq/gists{/gist_id}","starred_url":"https://api.github.com/users/upq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upq/subscriptions","organizations_url":"https://api.github.com/users/upq/orgs","repos_url":"https://api.github.com/users/upq/repos","events_url":"https://api.github.com/users/upq/events{/privacy}","received_events_url":"https://api.github.com/users/upq/received_events","type":"User","site_admin":false},"labels":[{"id":353548953,"url":"https://api.github.com/repos/json-schema-form/angular-schema-form/labels/needs:%20PR","name":"needs: PR","color":"0052cc","default":false},{"id":87981570,"url":"https://api.github.com/repos/json-schema-form/angular-schema-form/labels/type:%20enhancement","name":"type: enhancement","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/json-schema-form/angular-schema-form/milestones/1","html_url":"https://github.com/json-schema-form/angular-schema-form/milestone/1","labels_url":"https://api.github.com/repos/json-schema-form/angular-schema-form/milestones/1/labels","id":1596497,"number":1,"title":"Backlog","description":"The issues that have **been reviewed** and **need triaging** for priority and/or addition to release milestones","creator":{"login":"Anthropic","id":1182507,"avatar_url":"https://avatars.githubusercontent.com/u/1182507?v=3","gravatar_id":"","url":"https://api.github.com/users/Anthropic","html_url":"https://github.com/Anthropic","followers_url":"https://api.github.com/users/Anthropic/followers","following_url":"https://api.github.com/users/Anthropic/following{/other_user}","gists_url":"https://api.github.com/users/Anthropic/gists{/gist_id}","starred_url":"https://api.github.com/users/Anthropic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anthropic/subscriptions","organizations_url":"https://api.github.com/users/Anthropic/orgs","repos_url":"https://api.github.com/users/Anthropic/repos","events_url":"https://api.github.com/users/Anthropic/events{/privacy}","received_events_url":"https://api.github.com/users/Anthropic/received_events","type":"User","site_admin":false},"open_issues":74,"closed_issues":2,"state":"open","created_at":"2016-02-22T08:50:49Z","updated_at":"2017-02-26T15:09:14Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2016-01-10T13:45:15Z","updated_at":"2017-02-26T15:12:33Z","closed_at":null,"body":"I get this error while the output is exactly how I expect it, the problem is that the form is invalid.\n### Form\n\n``` javascript\nform =    {\n                                        \"key\": \"data.answers\",\n                                        \"type\": \"array\",\n                                        \"items\": [\n                                            {\n                                                \"key\": \"data.answers[]\",\n\n                                                \"items\": [\n                                                    {\n                                                        \"key\": \"data.answers[].text\",\n                                                        \"type\": \"text\",\n                                                        \"title\": \"Question\",\n                                                    },\n                                                ]\n                                            }\n                                        ]\n                                    },\n```\n### Schema\n\n``` javascript\n\n        scope.schema = {\n                        \"type\": \"object\",\n                        \"title\": \"Types\",\n                        \"properties\": {\n                            \"data\": {\n                                \"type\": \"object\",\n                                \"title\": \"data\",\n                                \"properties\": {\n                                    \"answers\": {\n                                        \"type\": \"array\",\n                                        \"title\":\"Answers\",\n                                        \"default\": [],\n                                        \"items\": {\n                                            \"type\": \"object\",\n                                            \"title\": \"Answer\",\n                                            \"properties\": {\n                                                \"text\": {\n                                                    \"title\": \"Answer\",\n                                                    \"type\": \"text\",\n                                                    \"required\": true,\n                                                },\n                                            }\n                                        }\n                                    }\n                                }\n                            }\n                        }\n                    };\n```\n### expected output\n\ndata = {answers: [{text: \"answer1\"}, {text: \"answer2\"}], correct: 1, question: \"questioning?\"}\n\nNow the expected output is right but the form is invalid saying that it expected an array, anything Im missing here?\n"},"comment":{"url":"https://api.github.com/repos/json-schema-form/angular-schema-form/issues/comments/282562532","html_url":"https://github.com/json-schema-form/angular-schema-form/issues/625#issuecomment-282562532","issue_url":"https://api.github.com/repos/json-schema-form/angular-schema-form/issues/625","id":282562532,"user":{"login":"Anthropic","id":1182507,"avatar_url":"https://avatars.githubusercontent.com/u/1182507?v=3","gravatar_id":"","url":"https://api.github.com/users/Anthropic","html_url":"https://github.com/Anthropic","followers_url":"https://api.github.com/users/Anthropic/followers","following_url":"https://api.github.com/users/Anthropic/following{/other_user}","gists_url":"https://api.github.com/users/Anthropic/gists{/gist_id}","starred_url":"https://api.github.com/users/Anthropic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anthropic/subscriptions","organizations_url":"https://api.github.com/users/Anthropic/orgs","repos_url":"https://api.github.com/users/Anthropic/repos","events_url":"https://api.github.com/users/Anthropic/events{/privacy}","received_events_url":"https://api.github.com/users/Anthropic/received_events","type":"User","site_admin":false},"created_at":"2017-02-26T15:12:33Z","updated_at":"2017-02-26T15:12:33Z","body":"@donalmurtagh I have a fix for that based on comments in #649, will get it out in alpha.3 this week, should have in dev branch in the next day or two I hope."}}
{"actor":{"display_login":"Anthropic"}}