mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[PR #3478] [CLOSED] feat: group requests by tag when importing OpenAPI #4400
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4400
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3478
Author: @pierre-borckmans
Created: 10/26/2023
Status: ❌ Closed
Base:
main← Head:openapi_group_by_tag📝 Commits (1)
88337effeat: 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
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.