{"action":"created","issue":{"url":"https://api.github.com/repos/rochacbruno/flasgger/issues/61","repository_url":"https://api.github.com/repos/rochacbruno/flasgger","labels_url":"https://api.github.com/repos/rochacbruno/flasgger/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/rochacbruno/flasgger/issues/61/comments","events_url":"https://api.github.com/repos/rochacbruno/flasgger/issues/61/events","html_url":"https://github.com/rochacbruno/flasgger/issues/61","id":217481595,"number":61,"title":"AttributeError: 'function' object has no attribute 'root_path'","user":{"login":"njarvis","id":703815,"avatar_url":"https://avatars0.githubusercontent.com/u/703815?v=3","gravatar_id":"","url":"https://api.github.com/users/njarvis","html_url":"https://github.com/njarvis","followers_url":"https://api.github.com/users/njarvis/followers","following_url":"https://api.github.com/users/njarvis/following{/other_user}","gists_url":"https://api.github.com/users/njarvis/gists{/gist_id}","starred_url":"https://api.github.com/users/njarvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njarvis/subscriptions","organizations_url":"https://api.github.com/users/njarvis/orgs","repos_url":"https://api.github.com/users/njarvis/repos","events_url":"https://api.github.com/users/njarvis/events{/privacy}","received_events_url":"https://api.github.com/users/njarvis/received_events","type":"User","site_admin":false},"labels":[{"id":241218212,"url":"https://api.github.com/repos/rochacbruno/flasgger/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-03-28T08:18:12Z","updated_at":"2017-03-30T21:58:58Z","closed_at":null,"body":"Issue introduced between 0.5.14 and 0.6.1:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/cci\", line 7, in <module>\r\n    from cci.main import start\r\n  File \"/usr/local/lib/python2.7/dist-packages/cci/main.py\", line 13, in <module>\r\n    from api import app\r\n  File \"/usr/local/lib/python2.7/dist-packages/cci/api/__init__.py\", line 33, in <module>\r\n    import views  # noqa\r\n  File \"/usr/local/lib/python2.7/dist-packages/cci/api/views.py\", line 80, in <module>\r\n    @swag_from(swag_file('api_versions.yml'))\r\n  File \"/usr/local/lib/python2.7/dist-packages/flasgger/utils.py\", line 72, in decorator\r\n    'root': function.root_path\r\nAttributeError: 'function' object has no attribute 'root_path'\r\n```\r\n\r\nOur code:\r\n\r\n```python\r\ndef swag_file(yml):\r\n    return pkg_resources.resource_filename('cci', os.path.join(\"api/swag\", yml))\r\n\r\n@app.route('/api/versions/', methods=['GET'])\r\n@swag_from(swag_file('api_versions.yml'))\r\ndef get_version():\r\n   // ...\r\n```"},"comment":{"url":"https://api.github.com/repos/rochacbruno/flasgger/issues/comments/290557422","html_url":"https://github.com/rochacbruno/flasgger/issues/61#issuecomment-290557422","issue_url":"https://api.github.com/repos/rochacbruno/flasgger/issues/61","id":290557422,"user":{"login":"rochacbruno","id":458654,"avatar_url":"https://avatars1.githubusercontent.com/u/458654?v=3","gravatar_id":"","url":"https://api.github.com/users/rochacbruno","html_url":"https://github.com/rochacbruno","followers_url":"https://api.github.com/users/rochacbruno/followers","following_url":"https://api.github.com/users/rochacbruno/following{/other_user}","gists_url":"https://api.github.com/users/rochacbruno/gists{/gist_id}","starred_url":"https://api.github.com/users/rochacbruno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rochacbruno/subscriptions","organizations_url":"https://api.github.com/users/rochacbruno/orgs","repos_url":"https://api.github.com/users/rochacbruno/repos","events_url":"https://api.github.com/users/rochacbruno/events{/privacy}","received_events_url":"https://api.github.com/users/rochacbruno/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T21:58:58Z","updated_at":"2017-03-30T21:58:58Z","body":"I need help from people who has mac and safari to run every example in `/examples` folder and please see if can reproduce the issue."}}
{"actor":{"display_login":"rochacbruno"}}