{"action":"created","issue":{"url":"https://api.github.com/repos/jhthorsen/json-validator/issues/129","repository_url":"https://api.github.com/repos/jhthorsen/json-validator","labels_url":"https://api.github.com/repos/jhthorsen/json-validator/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/jhthorsen/json-validator/issues/129/comments","events_url":"https://api.github.com/repos/jhthorsen/json-validator/issues/129/events","html_url":"https://github.com/jhthorsen/json-validator/issues/129","id":389983051,"node_id":"MDU6SXNzdWUzODk5ODMwNTE=","number":129,"title":"adding error code to JSON::Validator::Error","user":{"login":"beyondcreed","id":928851,"node_id":"MDQ6VXNlcjkyODg1MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/928851?v=4","gravatar_id":"","url":"https://api.github.com/users/beyondcreed","html_url":"https://github.com/beyondcreed","followers_url":"https://api.github.com/users/beyondcreed/followers","following_url":"https://api.github.com/users/beyondcreed/following{/other_user}","gists_url":"https://api.github.com/users/beyondcreed/gists{/gist_id}","starred_url":"https://api.github.com/users/beyondcreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beyondcreed/subscriptions","organizations_url":"https://api.github.com/users/beyondcreed/orgs","repos_url":"https://api.github.com/users/beyondcreed/repos","events_url":"https://api.github.com/users/beyondcreed/events{/privacy}","received_events_url":"https://api.github.com/users/beyondcreed/received_events","type":"User","site_admin":false},"labels":[{"id":251297973,"node_id":"MDU6TGFiZWwyNTEyOTc5NzM=","url":"https://api.github.com/repos/jhthorsen/json-validator/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"jhthorsen","id":45729,"node_id":"MDQ6VXNlcjQ1NzI5","avatar_url":"https://avatars2.githubusercontent.com/u/45729?v=4","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false},"assignees":[{"login":"jhthorsen","id":45729,"node_id":"MDQ6VXNlcjQ1NzI5","avatar_url":"https://avatars2.githubusercontent.com/u/45729?v=4","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-12-11T22:32:42Z","updated_at":"2018-12-12T03:50:14Z","closed_at":null,"author_association":"NONE","body":"just curious if it would be possible to add error_code to JSON::Validator::Error\r\n\r\ne.g.\r\n\r\n```\r\nuse JSON::Validator::Error;\r\nmy $err = JSON::Validator::Error->new($path, $message, $error_code);\r\n```\r\nuse case for this would be to localize on front-end the message based on specific error code returned by API, could likely use message to stuff the code, but thought it would be cleaner to keep it separate."},"comment":{"url":"https://api.github.com/repos/jhthorsen/json-validator/issues/comments/446452415","html_url":"https://github.com/jhthorsen/json-validator/issues/129#issuecomment-446452415","issue_url":"https://api.github.com/repos/jhthorsen/json-validator/issues/129","id":446452415,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQ1MjQxNQ==","user":{"login":"jhthorsen","id":45729,"node_id":"MDQ6VXNlcjQ1NzI5","avatar_url":"https://avatars2.githubusercontent.com/u/45729?v=4","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T03:50:14Z","updated_at":"2018-12-12T03:50:14Z","author_association":"OWNER","body":"How would the error code help you? Can you give me some examples of what they might be and how you would use them?"}}
{"actor":{"display_login":"jhthorsen"}}