mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3745] [MERGED] fix: fix unwanted double slashes when importing from openapi #4513
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4513
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3745
Author: @amk-dev
Created: 1/12/2024
Status: ✅ Merged
Merged: 1/23/2024
Merged by: @AndrewBastin
Base:
release/2023.12.3← Head:fix/fix-double-slashes-in-openapi-import📝 Commits (1)
cde4b46fix: fix unwanted double slashes when importing from openapi📊 Changes
1 file changed (+12 additions, -6 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts(+12 -6)📄 Description
Closes #3743
Fixes HFE-395
Before
in function
convertPathToHoppReqs, when calculating the endpoint, if the value returned from theparseOpenAPIUrlhas a trailing slash andreplaceOpenApiPathTemplatinghas a leading slash, it will cause the endpoint to have a double slash in the middle.After
We handle the above case by removing the extra slash.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.