{"action":"closed","issue":{"url":"https://api.github.com/repos/PugglePay/validates-structure/issues/3","labels_url":"https://api.github.com/repos/PugglePay/validates-structure/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/PugglePay/validates-structure/issues/3/comments","events_url":"https://api.github.com/repos/PugglePay/validates-structure/issues/3/events","html_url":"https://github.com/PugglePay/validates-structure/issues/3","id":105728123,"number":3,"title":"Key can not only appear within a block of a key of type Array","user":{"login":"dieuit07","id":1289505,"avatar_url":"https://avatars.githubusercontent.com/u/1289505?v=3","gravatar_id":"","url":"https://api.github.com/users/dieuit07","html_url":"https://github.com/dieuit07","followers_url":"https://api.github.com/users/dieuit07/followers","following_url":"https://api.github.com/users/dieuit07/following{/other_user}","gists_url":"https://api.github.com/users/dieuit07/gists{/gist_id}","starred_url":"https://api.github.com/users/dieuit07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieuit07/subscriptions","organizations_url":"https://api.github.com/users/dieuit07/orgs","repos_url":"https://api.github.com/users/dieuit07/repos","events_url":"https://api.github.com/users/dieuit07/events{/privacy}","received_events_url":"https://api.github.com/users/dieuit07/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T04:05:30Z","updated_at":"2015-09-11T09:33:06Z","closed_at":"2015-09-11T09:33:06Z","body":"Example hash\r\n\r\n```\r\n  key 'require_passenger', Boolean\r\n  key 'passengers', presence: true, if: Proc.new {|key| key['require_passenger'] == true}\r\n```\r\n\r\nIs there anyway to do that ?\r\n"}}