Skip to content

Commit

Permalink
fix: use wildcard name instead of placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 16, 2025
1 parent d206d42 commit 82fbf77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/swagger-explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class SwaggerExplorer {
} else if (item.type === 'param') {
pathWithParams += `{${item.name}}`;
} else if (item.type === 'wildcard') {
pathWithParams += `{splat}`;
pathWithParams += `{${item.name}}`;
} else if (item.type === 'group') {
// Flatten the optional parameter groups to a single parameter
pathWithParams += item.tokens.reduce(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/swagger",
"version": "11.0.0-next.1",
"version": "11.0.0-next.2",
"description": "Nest - modern, fast, powerful node.js web framework (@swagger)",
"author": "Kamil Mysliwiec",
"license": "MIT",
Expand Down

0 comments on commit 82fbf77

Please sign in to comment.