Skip to content

Commit e8ca216

Browse files
authored
Update paths-enum.ts
1 parent 6f721d1 commit e8ca216

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/openapi-typescript/src/transform/paths-enum.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ export default function makeApiPathsEnum(pathsObject: PathsObject): ts.EnumDecla
3030
})
3131
.join("");
3232
}
33-
34-
// Replace {parameters} with :parameters
35-
const adaptedUrl = url.replace(/{(\w+)}/g, "{$1}");
36-
37-
enumKeys.push(adaptedUrl);
33+
enumKeys.push(url);
3834
enumMetaData.push({
3935
name: pathName,
4036
});

0 commit comments

Comments
 (0)