{"action":"closed","issue":{"url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/417","repository_url":"https://api.github.com/repos/ruby-json-schema/json-schema","labels_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/417/comments","events_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/417/events","html_url":"https://github.com/ruby-json-schema/json-schema/issues/417","id":369931839,"node_id":"MDU6SXNzdWUzNjk5MzE4Mzk=","number":417,"title":"It would be very useful if the required property name was included in the error object","user":{"login":"ndbroadbent","id":139536,"node_id":"MDQ6VXNlcjEzOTUzNg==","avatar_url":"https://avatars2.githubusercontent.com/u/139536?v=4","gravatar_id":"","url":"https://api.github.com/users/ndbroadbent","html_url":"https://github.com/ndbroadbent","followers_url":"https://api.github.com/users/ndbroadbent/followers","following_url":"https://api.github.com/users/ndbroadbent/following{/other_user}","gists_url":"https://api.github.com/users/ndbroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/ndbroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndbroadbent/subscriptions","organizations_url":"https://api.github.com/users/ndbroadbent/orgs","repos_url":"https://api.github.com/users/ndbroadbent/repos","events_url":"https://api.github.com/users/ndbroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/ndbroadbent/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-14T18:52:17Z","updated_at":"2018-10-14T20:18:37Z","closed_at":"2018-10-14T20:18:37Z","author_association":"NONE","body":"```\r\n=> [{:schema=>#<Addressable::URI:0x3ffe4475df78 URI:https://example.com/schema.json>,\r\n  :fragment=>\"#/\",\r\n  :message=>\"The root object did not contain a required property of 'title'\",\r\n  :failed_attribute=>\"Required\"}]\r\n```\r\n\r\nI'm using the `errors_as_objects: true` option, and was hoping that this would give me \"title\" somewhere as a value, which would make it easier to work with the errors. With the current data, I need to manually construct a regex to match `title` in the `:message` string, which is pretty ugly.\r\n\r\nI will work on a PR to add this as a new `:failed_property` field."}}
{"actor":{"display_login":"ndbroadbent"}}