wordnik/swagger-ui — pull request #210 by ytsTony (2013-05-20 16:17:10+00:00)
Title: Added optional path parameter support

{
"apis": [
{
"path": "/foo(/{optional})",
"operations": [
"parameters": [
{
"dataType": "string",
"name": "optional",
"required": false,
"paramType": "path"
}
]
]
}
]
}

If the optional parameter is inputted, say the value is val, the
request path will become /foo/val.
Otherwise the path will become /foo

If one of the path parameter is set to be optional, all of the path
parameter with the same must be optional.
The following path:
/foo(/{optional})/{optional}
is invalid. invalid path exception will be throw