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 authored and Its-treason committed Aug 24, 2024
1 parent 537978c commit 2aa1886
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ const parseOpenApiCollection = (data) => {
.map(([method, operationObject]) => {
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 2aa1886

Please sign in to comment.