We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82e98b4 commit 602394bCopy full SHA for 602394b
packages/openapi-typescript/src/transform/paths-enum.ts
@@ -32,7 +32,7 @@ export default function makeApiPathsEnum(pathsObject: PathsObject): ts.EnumDecla
32
}
33
34
// Replace {parameters} with :parameters
35
- const adaptedUrl = url.replace(/{(\w+)}/g, ":$1");
+ const adaptedUrl = url.replace(/{(\w+)}/g, "{$1}");
36
37
enumKeys.push(adaptedUrl);
38
enumMetaData.push({
0 commit comments