You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is basically exactly the same issue as described here #950. It seems like the bug was added back here #2052 when implementing this feature again for the v7.
In short, the ApiPaths urls are getting renamed like so /persons/{id} -> /persons/:id, which shouldn't happen.
openapi-typescript version
7.5.2
Node.js version
20.12.1
OS + version
macOS 15.1.1
Description
This is basically exactly the same issue as described here #950. It seems like the bug was added back here #2052 when implementing this feature again for the v7.
In short, the
ApiPaths
urls are getting renamed like so/persons/{id}
->/persons/:id
, which shouldn't happen.The line that needs to be fixed is this:
openapi-typescript/packages/openapi-typescript/src/transform/paths-enum.ts
Lines 34 to 35 in 7d6e896
See this PR #951 on how it was fixed before.
Let me know if you want me to open the PR. Thanks!
Reproduction
See this PR #950
Expected result
Ths URLs in both
paths
andApiPaths
should be identical.Required
npx @redocly/cli@latest lint
)Extra
The text was updated successfully, but these errors were encountered: