Skip to content

Commit 0f9015c

Browse files
author
Carmine DiMascio
committed
decode urlencoded path parameters #256
1 parent 6cc7b3d commit 0f9015c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares/openapi.metadata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function applyOpenApiMetadata(
5252

5353
if (matchedRoute) {
5454
const paramKeys = keys.map(k => k.name);
55-
const paramsVals = matchedRoute.slice(1);
55+
const paramsVals = matchedRoute.slice(1).map(decodeURIComponent);
5656
const pathParams = _zipObject(paramKeys, paramsVals);
5757

5858
return {

0 commit comments

Comments
 (0)