Skip to content

Commit

Permalink
fix: replace curly braces with colons in OpenAPI path parameters (use…
Browse files Browse the repository at this point in the history
  • Loading branch information
Madh93 committed Jun 29, 2024
1 parent fd57b2c commit 54a1efe
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ const parseOpenApiCollection = (data) => {
return {
method: method,
path: path,
path: path.replace(/{([^}]+)}/g, ':$1'), // Replace placeholders enclosed in curly braces with colons
operationObject: operationObject,
global: {
server: baseUrl,
Expand Down

0 comments on commit 54a1efe

Please sign in to comment.