[PR #4789] [MERGED] chore: move openapi validation and dereferencing to a worker #4932

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4789
Author: @amk-dev
Created: 2/25/2025
Status: Merged
Merged: 2/26/2025
Merged by: @jamesgeorge007

Base: nextHead: chore/openapi-improvements


📝 Commits (2)

  • 483546b chore: move openapi validation and dereferencing to a worker
  • 57003ec chore: fix undefined process.platform

📊 Changes

3 files changed (+102 additions, -6 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts (+48 -6)
packages/hoppscotch-common/src/helpers/import-export/import/workers/openapi-import-worker.ts (+53 -0)
📝 packages/hoppscotch-selfhost-web/vite.config.ts (+1 -0)

📄 Description

This PR moves the opeanpi validation + dereferencing that happens while importing an openapi document into a worker so that the UI is not froze when importing things. Also brings along changes from #4775


🔄 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/4789 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 2/25/2025 **Status:** ✅ Merged **Merged:** 2/26/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `chore/openapi-improvements` --- ### 📝 Commits (2) - [`483546b`](https://github.com/hoppscotch/hoppscotch/commit/483546b49ffe834486fd5f0ec9f3a767f05b4fa5) chore: move openapi validation and dereferencing to a worker - [`57003ec`](https://github.com/hoppscotch/hoppscotch/commit/57003ec45c29f0281084645465fe2f512e4456f4) chore: fix undefined process.platform ### 📊 Changes **3 files changed** (+102 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts` (+48 -6) ➕ `packages/hoppscotch-common/src/helpers/import-export/import/workers/openapi-import-worker.ts` (+53 -0) 📝 `packages/hoppscotch-selfhost-web/vite.config.ts` (+1 -0) </details> ### 📄 Description This PR moves the opeanpi validation + dereferencing that happens while importing an openapi document into a worker so that the UI is not froze when importing things. Also brings along changes from #4775 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:25:29 +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#4932
No description provided.