[PR #3846] [MERGED] feat: use tags as folders when importing from openapi #4552

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

📋 Pull Request Information

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

Base: release/2024.3.0Head: feat/tags-as-folders-openapi-import


📝 Commits (1)

  • fa2b2f2 feat: use tags as folders when importing from openapi

📊 Changes

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

View changed files

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

📄 Description

fixes #3411
fixes HFE-388

Changes

  • When importing from a openapi spec, we'll group the requests to folders based on the tags provided

    • If no tags are provided, they'll be added to the root of the imported collection
    • For each tag, a folder will be created and the requests will be added to the folder
    • If a request has multiple tags, it'll be added to all the folders corresponding to the tags

for testing this PR, you can use openapi spec in this URL https://gist.githubusercontent.com/amk-dev/cc17964b48da497257502b8bf4db7e93/raw/50752cc7377602b80261370c4faf93f87c5d7626/openapi-with-tags-example

it has requests with multiple tags, single tag and no tag


🔄 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/3846 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 2/20/2024 **Status:** ✅ Merged **Merged:** 3/7/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2024.3.0` ← **Head:** `feat/tags-as-folders-openapi-import` --- ### 📝 Commits (1) - [`fa2b2f2`](https://github.com/hoppscotch/hoppscotch/commit/fa2b2f208c3cb73644cdd661b4c6d76e73139c03) feat: use tags as folders when importing from openapi ### 📊 Changes **1 file changed** (+67 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts` (+67 -25) </details> ### 📄 Description fixes #3411 fixes HFE-388 **Changes** * When importing from a openapi spec, we'll group the requests to folders based on the tags provided * If no tags are provided, they'll be added to the root of the imported collection * For each tag, a folder will be created and the requests will be added to the folder * If a request has multiple tags, it'll be added to all the folders corresponding to the tags for testing this PR, you can use openapi spec in this URL https://gist.githubusercontent.com/amk-dev/cc17964b48da497257502b8bf4db7e93/raw/50752cc7377602b80261370c4faf93f87c5d7626/openapi-with-tags-example it has requests with multiple tags, single tag and no tag --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:04:45 +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#4552
No description provided.