[PR #5232] [MERGED] feat(common): enhance URL parsing to use environment variables on openapi import #5119

Closed
opened 2026-03-17 02:35:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5232
Author: @anwarulislam
Created: 7/9/2025
Status: Merged
Merged: 7/14/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/baseurl-open-api-import


📝 Commits (4)

  • 6f65532 feat: enhance URL parsing to use environment variables
  • 78ee11d chore: clean up
  • b121f46 chore: handle server url for openapi collection import
  • 360a418 chore: keep pre-existing behavior for OpenAPI v2

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts (+5 -1)

📄 Description

Closes FE-914 #5177

Improve URL parsing to utilize environment variables for host and base path, allowing for more dynamic configurations. Clean up code for better readability.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5232 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/14/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/baseurl-open-api-import` --- ### 📝 Commits (4) - [`6f65532`](https://github.com/hoppscotch/hoppscotch/commit/6f655323d6a431c57eddd92b25b967e7f7ba228c) feat: enhance URL parsing to use environment variables - [`78ee11d`](https://github.com/hoppscotch/hoppscotch/commit/78ee11db771b54a632be9b2cbab7a77567606d71) chore: clean up - [`b121f46`](https://github.com/hoppscotch/hoppscotch/commit/b121f46946b6a9113eaeb745930590e1543a042c) chore: handle server url for openapi collection import - [`360a418`](https://github.com/hoppscotch/hoppscotch/commit/360a4183f73fd667dc28101af0465c0335400cab) chore: keep pre-existing behavior for OpenAPI v2 ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts` (+5 -1) </details> ### 📄 Description Closes FE-914 #5177 Improve URL parsing to utilize environment variables for host and base path, allowing for more dynamic configurations. Clean up code for better readability. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:35:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5119
No description provided.