Closed
Description
It looks like the Swagger UI has a problem with hapi-style optional path parameters. With a route defined as:
/books/{id}/cover
Swagger UI has no trouble at all. It documents the route, and enables me to invoke it from the UI. Great!
But when a parameterized path contains an optional parameter at the end, it has a problem:
/library/shelves/{shelfId}/book/{id?}
Here it documents the route, including the optional parameter segment. But when I try to execute the from the UI, leaving the optional parameter blank, the UI never invokes the API.
Did I miss something in the documentation? Or is this an issue?