[PR #3918] [MERGED] fix: fix direct import from url failing #4592

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3918
Author: @amk-dev
Created: 3/20/2024
Status: Merged
Merged: 3/20/2024
Merged by: @AndrewBastin

Base: release/2024.3.0Head: fix/import-url-type-error


📝 Commits (1)

  • 3776ca6 fix: pass an array to the importer instead of the content only

📊 Changes

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

View changed files

📝 packages/hoppscotch-common/src/pages/import.vue (+1 -1)

📄 Description

Before

The importers now takes an array instead of just the import content. this update was not made in the import.vue file. because of this imports will fail. (test in staging server to repro.)

https://hoppscotch.io/import?url=https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml&type=openapi

After

Imports from import.vue also passes the contents as an array.


🔄 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/3918 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 3/20/2024 **Status:** ✅ Merged **Merged:** 3/20/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2024.3.0` ← **Head:** `fix/import-url-type-error` --- ### 📝 Commits (1) - [`3776ca6`](https://github.com/hoppscotch/hoppscotch/commit/3776ca6dc72305a51cb371d8ecded91a11d9e828) fix: pass an array to the importer instead of the content only ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/pages/import.vue` (+1 -1) </details> ### 📄 Description **Before** The importers now takes an array instead of just the import content. this update was not made in the `import.vue` file. because of this imports will fail. (test in staging server to repro.) `https://hoppscotch.io/import?url=https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml&type=openapi` **After** Imports from `import.vue` also passes the contents as an array. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:06:56 +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#4592
No description provided.