[PR #5078] feauture: Improve naming handling of duplicate OpenAPI spec imports #5041

Open
opened 2026-03-17 02:31:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5078
Author: @Leon-Luu
Created: 5/15/2025
Status: 🔄 Open

Base: mainHead: pr/feature_improve_name_on_collection_import_from_openapi


📝 Commits (3)

  • a0cb0b5 feauture: Improve naming handling of duplicate OpenAPI spec imports in import collections
  • 7e01d57 Merge branch 'main' into pr/feature_improve_name_on_collection_import_from_openapi
  • 7983e78 Merge branch 'main' into pr/feature_improve_name_on_collection_import_from_openapi

📊 Changes

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

View changed files

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

📄 Description

Updated openapi.ts to use version-aware and unique collection names, ensuring no duplicate names when importing OpenAPI specs.

image

Closes #
https://github.com/hoppscotch/hoppscotch/issues/5073

What's changed

Notes to reviewers


🔄 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/5078 **Author:** [@Leon-Luu](https://github.com/Leon-Luu) **Created:** 5/15/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pr/feature_improve_name_on_collection_import_from_openapi` --- ### 📝 Commits (3) - [`a0cb0b5`](https://github.com/hoppscotch/hoppscotch/commit/a0cb0b504fb8732d1e195a617d07c24911a9b4ce) feauture: Improve naming handling of duplicate OpenAPI spec imports in import collections - [`7e01d57`](https://github.com/hoppscotch/hoppscotch/commit/7e01d57bca7b9b0a1bbaa7073e6786db25ed9e6d) Merge branch 'main' into pr/feature_improve_name_on_collection_import_from_openapi - [`7983e78`](https://github.com/hoppscotch/hoppscotch/commit/7983e78207046316dc763c15797cd782a3a8ba98) Merge branch 'main' into pr/feature_improve_name_on_collection_import_from_openapi ### 📊 Changes **1 file changed** (+48 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts` (+48 -2) </details> ### 📄 Description Updated openapi.ts to use version-aware and unique collection names, ensuring no duplicate names when importing OpenAPI specs. ![image](https://github.com/user-attachments/assets/a0b20c1c-71b1-4b49-b31e-85bfca1c594f) <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes # <!-- Issue # here --> https://github.com/hoppscotch/hoppscotch/issues/5073 <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> ### What's changed <!-- Describe point by point the different things you have changed in this PR --> <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5041
No description provided.