Skip to content

Commit

Permalink
fix(openapi): add schema to generated parameters (#2235)
Browse files Browse the repository at this point in the history
  • Loading branch information
byyuurin committed Mar 15, 2024
1 parent 985a489 commit e40abf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/routes/openapi.ts
Expand Up @@ -75,7 +75,7 @@ function normalizeRoute(_route: string) {
for (const match of paramMatches) {
const name = match[1];
if (!parameters.some((p) => p.name === name)) {
parameters.push({ name, in: "path", required: true });
parameters.push({ name, in: "path", required: true, schema: { type: 'string' } });
}
}

Expand Down

0 comments on commit e40abf0

Please sign in to comment.