Skip to content

Commit

Permalink
fixed router parameters (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksSlesarenko committed Nov 19, 2022
1 parent 6448f45 commit 2bbed6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/framework/openapi.spec.loader.ts
Expand Up @@ -64,7 +64,8 @@ export class OpenApiSpecLoader {
continue;
}
const pathParams = new Set<string>();
for (const param of schema.parameters ?? []) {
const parameters = [...schema.parameters ?? [], ...methods.parameters ?? []]
for (const param of parameters) {
if (param.in === 'path') {
pathParams.add(param.name);
}
Expand Down

0 comments on commit 2bbed6f

Please sign in to comment.