tim-vandecasteele/grape-swagger — pull request #15 by fknappe (2012-09-29 03:08:15+00:00)
Title: Fix swagger routes generation for grape versioned API

Hey @tim-vandecasteele. I've seen @tenaciousflea changes to fix routes generation when specifying API version on path. According to my tests, it has broken routes generation apparently because it has only scoped the namespaced routes. Thus, I've made a very similar change myself that doesn't affect the backwards compatibility.
I've only changed the routes_path regex to not allow expressions starting with :version (accepts word character only).

I have made some tests and it seems alright.

Hope it solves your problem.