tim-vandecasteele/grape-swagger — pull request #17 by justfalter (2012-10-16 16:30:12+00:00)
Title: Improvements to parse_path

Hi there,

I found that if I had routes like any of the following, grape-swagger would generate some pretty goofy swagger documentation:

* "/:sha1" parses to "/{sha}1"
* "/:some_name" parses to "/{some}_name"
* "/:Some_Name" parses to "/:Some_Name"

This behavior causes grape-swagger to generate incorrect swagger specifications.

The changes I made allow all of these to parse with proper expectations, namely:

* "/:sha1" parses to "/{sha1}"
* "/:some_name" parses to "/{some_name}"
* "/:Some_Name" parses to "/{Some_Name}"