{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/245","labels_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/245/comments","events_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/245/events","html_url":"https://github.com/ruby-json-schema/json-schema/pull/245","id":60926642,"number":245,"title":"v3.x: Use string keys during validation. Add flag to stringify passed data","user":{"login":"RST-J","id":4967885,"avatar_url":"https://avatars.githubusercontent.com/u/4967885?v=3","gravatar_id":"","url":"https://api.github.com/users/RST-J","html_url":"https://github.com/RST-J","followers_url":"https://api.github.com/users/RST-J/followers","following_url":"https://api.github.com/users/RST-J/following{/other_user}","gists_url":"https://api.github.com/users/RST-J/gists{/gist_id}","starred_url":"https://api.github.com/users/RST-J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RST-J/subscriptions","organizations_url":"https://api.github.com/users/RST-J/orgs","repos_url":"https://api.github.com/users/RST-J/repos","events_url":"https://api.github.com/users/RST-J/events{/privacy}","received_events_url":"https://api.github.com/users/RST-J/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-12T22:49:43Z","updated_at":"2015-03-14T15:09:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/245","html_url":"https://github.com/ruby-json-schema/json-schema/pull/245","diff_url":"https://github.com/ruby-json-schema/json-schema/pull/245.diff","patch_url":"https://github.com/ruby-json-schema/json-schema/pull/245.patch"},"body":"This changes the validator to internally always rely on string keys during validation and relates to #243.\r\nIt also adds a flag to convert keys and values in given data to strings."},"comment":{"url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/comments/80526109","html_url":"https://github.com/ruby-json-schema/json-schema/pull/245#issuecomment-80526109","issue_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/245","id":80526109,"user":{"login":"iainbeeston","id":111963,"avatar_url":"https://avatars.githubusercontent.com/u/111963?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbeeston","html_url":"https://github.com/iainbeeston","followers_url":"https://api.github.com/users/iainbeeston/followers","following_url":"https://api.github.com/users/iainbeeston/following{/other_user}","gists_url":"https://api.github.com/users/iainbeeston/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbeeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbeeston/subscriptions","organizations_url":"https://api.github.com/users/iainbeeston/orgs","repos_url":"https://api.github.com/users/iainbeeston/repos","events_url":"https://api.github.com/users/iainbeeston/events{/privacy}","received_events_url":"https://api.github.com/users/iainbeeston/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T15:09:05Z","updated_at":"2015-03-14T15:09:05Z","body":"I've been thinking more about this (see #246) and now I think we probably should aim to remove inserting defaults in 3.0. It wouldn't be hard for users to insert defaults themselves using either [ActiveSupport's deep_merge](http://api.rubyonrails.org/classes/Hash.html#method-i-deep_merge) or maybe [Map](https://github.com/ahoward/map), and by letting them insert the defaults we avoid any ambiguity (plus we don't have to maintain that code and can focus on validation). Does that sound ok?"}}