Closed samanthawritescode closed 6 months ago
Thanks for the report @samanthawritescode I am looking at how to support this using the exising tools (Mustermann).
@ahx it's coming from the mustermann's Sinatra pattern
I changed the regex to /[\w\.-]+/
and then the kebab-params became supported. not sure if that's something expected in the Sinatra parser tho :D
This branch adds support for kebab-cased path parameters (and removes the mustermann dependency). Feedback is welcome.
Thanks again for the report. A fix was released in 1.3.5.
I have a spec that prefers to use kebab-case. We have paths that have dynamic parameters that we name accordingly, i.e.
/api-keys/{api-key-id}
.I'm getting a parsing error from Mustermann when using this as middleware with my spec in test:
If I change the URL param to not use the
-
character, it seems to parse correctly. I'd really like to not have to do this since it would mean either a casing change inconsistent with the rest of my spec or a clarity loss if I had to just go withid
.