Describe the bug
Ts.ED supports named wildcards in routes (e.g. /:param*, but the generated OpenAPI/Swagger specification produces an invalid path template.
To Reproduce
Create controller
@Controller("/merged")
export class MyController {
@Get("/:moduleUri*")
get(@PathParams("moduleUri") moduleUri: string) {
return moduleUri;
}
}
That creates swagger.json path
{
"paths": {
"/merged/{moduleUri*}": {
"get": {
"parameters": [
{
"name": "moduleUri*",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
}
}
}
}
Expected behavior
The path param should not contain *.
Code snippets
Repository URL example
No response
OS
macOS
Node version
22.21.0
Library version
v8.25.4
Additional context
No response
Describe the bug
Ts.ED supports named wildcards in routes (e.g. /:param*, but the generated OpenAPI/Swagger specification produces an invalid path template.
To Reproduce
Create controller
That creates swagger.json path
{ "paths": { "/merged/{moduleUri*}": { "get": { "parameters": [ { "name": "moduleUri*", "in": "path", "required": true, "schema": { "type": "string" } } ] } } } }Expected behavior
The path param should not contain *.
Code snippets
Repository URL example
No response
OS
macOS
Node version
22.21.0
Library version
v8.25.4
Additional context
No response