{"action":"created","issue":{"url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/192","labels_url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/192/comments","events_url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/192/events","html_url":"https://github.com/tim-vandecasteele/grape-swagger/issues/192","id":53625512,"number":192,"title":"Fail to show some operations when api version is part of path","user":{"login":"carelvwyk","id":2698547,"avatar_url":"https://avatars.githubusercontent.com/u/2698547?v=3","gravatar_id":"","url":"https://api.github.com/users/carelvwyk","html_url":"https://github.com/carelvwyk","followers_url":"https://api.github.com/users/carelvwyk/followers","following_url":"https://api.github.com/users/carelvwyk/following{/other_user}","gists_url":"https://api.github.com/users/carelvwyk/gists{/gist_id}","starred_url":"https://api.github.com/users/carelvwyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carelvwyk/subscriptions","organizations_url":"https://api.github.com/users/carelvwyk/orgs","repos_url":"https://api.github.com/users/carelvwyk/repos","events_url":"https://api.github.com/users/carelvwyk/events{/privacy}","received_events_url":"https://api.github.com/users/carelvwyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/labels/bug?","name":"bug?","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-07T12:02:41Z","updated_at":"2015-01-30T11:33:50Z","closed_at":null,"body":"In Grape, if the api version is part of the path ( `version 'v1', using: :path` ), the grape-swagger route_match regex fails to match all paths.\r\nTo reproduce, add the following line to  grape-swagger/example/api.rb below `format :json` (line 7): `version 'v1', using: :path`\r\n\r\nIn this case, grape generates routes with paths that looks as follows: `/:version/invoices`\r\nWhich is not properly matched by the regex in grape-swagger/lib/grape-swagger.rb line 23 (`route_match = route_match.match('\\/([\\w|-]*?)[\\.\\/\\(]') || route_match.match('\\/([\\w|-]*)')`)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/comments/72188476","html_url":"https://github.com/tim-vandecasteele/grape-swagger/issues/192#issuecomment-72188476","issue_url":"https://api.github.com/repos/tim-vandecasteele/grape-swagger/issues/192","id":72188476,"user":{"login":"LuckyThirteen","id":405732,"avatar_url":"https://avatars.githubusercontent.com/u/405732?v=3","gravatar_id":"","url":"https://api.github.com/users/LuckyThirteen","html_url":"https://github.com/LuckyThirteen","followers_url":"https://api.github.com/users/LuckyThirteen/followers","following_url":"https://api.github.com/users/LuckyThirteen/following{/other_user}","gists_url":"https://api.github.com/users/LuckyThirteen/gists{/gist_id}","starred_url":"https://api.github.com/users/LuckyThirteen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuckyThirteen/subscriptions","organizations_url":"https://api.github.com/users/LuckyThirteen/orgs","repos_url":"https://api.github.com/users/LuckyThirteen/repos","events_url":"https://api.github.com/users/LuckyThirteen/events{/privacy}","received_events_url":"https://api.github.com/users/LuckyThirteen/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T11:33:50Z","updated_at":"2015-01-30T11:33:50Z","body":":+1: "}}