{"action":"created","issue":{"url":"https://api.github.com/repos/jhthorsen/swagger2/issues/65","repository_url":"https://api.github.com/repos/jhthorsen/swagger2","labels_url":"https://api.github.com/repos/jhthorsen/swagger2/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/jhthorsen/swagger2/issues/65/comments","events_url":"https://api.github.com/repos/jhthorsen/swagger2/issues/65/events","html_url":"https://github.com/jhthorsen/swagger2/issues/65","id":126228491,"node_id":"MDU6SXNzdWUxMjYyMjg0OTE=","number":65,"title":"Deprecate swagger_route_added hook","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},"labels":[{"id":153480834,"node_id":"MDU6TGFiZWwxNTM0ODA4MzQ=","url":"https://api.github.com/repos/jhthorsen/swagger2/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":153480835,"node_id":"MDU6TGFiZWwxNTM0ODA4MzU=","url":"https://api.github.com/repos/jhthorsen/swagger2/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","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":"2016-01-12T17:20:40Z","updated_at":"2018-08-01T07:56:55Z","closed_at":"2016-06-11T02:19:47Z","author_association":"OWNER","body":"I want to deprecate the `swagger_route_added` hook in favour of the `before_generate_request_handler` suggested in #55. (Note: \"before_generate_request_handler\" should probably be called something else)\n\n`swagger_route_added` was added to be able to customise the name of the route. This could be done inside `before_generate_request_handler` handler instead.\n\nSuggested API:\n\n```\n$before_generate_request_handler->($defaults, $route);\n```\n\nThe reason for this change is simply to remove _on_route_added().\n\nGoing to leave this open to see if anyone objects.\n"},"comment":{"url":"https://api.github.com/repos/jhthorsen/swagger2/issues/comments/409485365","html_url":"https://github.com/jhthorsen/swagger2/issues/65#issuecomment-409485365","issue_url":"https://api.github.com/repos/jhthorsen/swagger2/issues/65","id":409485365,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQ4NTM2NQ==","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-08-01T07:56:55Z","updated_at":"2018-08-01T07:56:55Z","author_association":"OWNER","body":"Yes. It's really annoying to get around it if you have the same action for both OpenAPI and other things. \r\n\r\nAlso, it's not the standard way for actions to behave in the \"Mojolicious World\", which makes it harder for new people to read your code."}}
{"actor":{"display_login":"jhthorsen"}}