[PR #3478] [CLOSED] feat: group requests by tag when importing OpenAPI #4400

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3478
Author: @pierre-borckmans
Created: 10/26/2023
Status: Closed

Base: mainHead: openapi_group_by_tag


📝 Commits (1)

  • 88337ef feat: group request by tag when importing OpenAPI

📊 Changes

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

View changed files

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

📄 Description

Closes #3411

Description

When importing openapi, this PR makes sure to create a Folder for each tag present in the openapi file.
The endpoints are then added in the corresponding folder.
Endpoints without a tag are added to the root of the collection (same behaviour as before).

Checks

  • My pull request adheres to the code style of this project
  • All the tests have passed

Additional Information

One caveat is that if multiple tags are assigned to a given endpoint, the same request will be populated twice in the corresponding 2 hoppscotch folders.


🔄 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/3478 **Author:** [@pierre-borckmans](https://github.com/pierre-borckmans) **Created:** 10/26/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `openapi_group_by_tag` --- ### 📝 Commits (1) - [`88337ef`](https://github.com/hoppscotch/hoppscotch/commit/88337ef54b6ead712103de44c985cf7ce121a44d) feat: group request by tag when importing OpenAPI ### 📊 Changes **1 file changed** (+33 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts` (+33 -7) </details> ### 📄 Description Closes #3411 ### Description When importing openapi, this PR makes sure to create a Folder for each tag present in the openapi file. The endpoints are then added in the corresponding folder. Endpoints without a tag are added to the root of the collection (same behaviour as before). ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [x] All the tests have passed ### Additional Information One caveat is that if multiple tags are assigned to a given endpoint, the same request will be populated twice in the corresponding 2 hoppscotch folders. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:56:17 +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#4400
No description provided.