{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1434","repository_url":"https://api.github.com/repos/ruby-grape/grape","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1434/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1434/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1434/events","html_url":"https://github.com/ruby-grape/grape/issues/1434","id":163631946,"number":1434,"title":"Error responses contain strange indexes","user":{"login":"renra","id":824659,"avatar_url":"https://avatars.githubusercontent.com/u/824659?v=3","gravatar_id":"","url":"https://api.github.com/users/renra","html_url":"https://github.com/renra","followers_url":"https://api.github.com/users/renra/followers","following_url":"https://api.github.com/users/renra/following{/other_user}","gists_url":"https://api.github.com/users/renra/gists{/gist_id}","starred_url":"https://api.github.com/users/renra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renra/subscriptions","organizations_url":"https://api.github.com/users/renra/orgs","repos_url":"https://api.github.com/users/renra/repos","events_url":"https://api.github.com/users/renra/events{/privacy}","received_events_url":"https://api.github.com/users/renra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruby-grape/grape/labels/bug?","name":"bug?","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-04T08:57:20Z","updated_at":"2016-07-28T21:49:14Z","closed_at":null,"body":"Hello,\r\n\r\nI have the following grape endpoint:\r\n\r\n```ruby\r\nparams do\r\n  requires :user, type: Hash do\r\n    requires :access_start, type: Date, allow_blank: false\r\n    # ... more required attributes\r\n  end\r\n\r\n  require :filters, type: Array\r\nend\r\n```\r\n\r\nWhen I send the following data: `{\"user\":{\"access_start\": null},\"filters\":[{\"id\":{\"equals\":[1, 2]}}]}` and I inspect the error raised by grape(calling as_json on it), I sometimes get errors like this:\r\n\r\n```\r\n[{:params=>[\"user[access_start]\"], :messages=>[\"is empty\"]}]\r\n```\r\n\r\nand sometimes like this:\r\n\r\n```\r\n[{:params=>[\"user[0][access_start]\"], :messages=>[\"is empty\"]}]\r\n```\r\n\r\nI am not able to get a consistent behaviour, but the first way seems correct to me. Using grape 0.16.2\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/comments/236035772","html_url":"https://github.com/ruby-grape/grape/issues/1434#issuecomment-236035772","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1434","id":236035772,"user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T21:49:14Z","updated_at":"2016-07-28T21:49:14Z","body":"@renra Check out HEAD now that https://github.com/ruby-grape/grape/pull/1463 has been merged. Is this still a problem?"}}
{"actor":{"display_login":"dblock"}}