fix: replace curly braces with colons in OpenAPI path parameters (#2513) (#2533)

This commit is contained in:
Miguel Hernández 2024-08-23 21:19:37 +02:00 committed by GitHub
parent dc21206fc0
commit 73ac969d35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -386,7 +386,7 @@ const parseOpenApiCollection = (data) => {
.map(([method, operationObject]) => { .map(([method, operationObject]) => {
return { return {
method: method, method: method,
path: path, path: path.replace(/{([^}]+)}/g, ':$1'), // Replace placeholders enclosed in curly braces with colons
operationObject: operationObject, operationObject: operationObject,
global: { global: {
server: baseUrl, server: baseUrl,