play-swagger
play-swagger copied to clipboard
Routes with multiple regexes
Given a route with regex syntax like:
GET /dice/$count<\d+>d$sides<\d+> controllers.Example.getDice(sides: Int, count: Int)
when I make a request through the swagger UI, it makes the GET request to a URL like: /dice/{count}d6?count=3
(with the literal {count}
string)
expected: /dice/3d6
Interestingly, the 6 (for $sides
) was passed correctly.
@williamho We are currently reviewing it. It may take some time, but we plan to address it.