mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4917] [MERGED] feat(common): lenient OpenAPI imports #4990
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#4990
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/4917
Author: @anwarulislam
Created: 3/19/2025
Status: ✅ Merged
Merged: 4/9/2025
Merged by: @jamesgeorge007
Base:
patch← Head:fix/openapi-import-issue📝 Commits (5)
04ecaf1fix(common): openapi import issuea87c570feat(common): add support for detecting unresolved references in documents9fafd68chore: clean upba0d210fix: improve unresolved references detection in OpenAPI documents9bd6adbchore: cleanup📊 Changes
1 file changed (+73 additions, -29 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts(+73 -29)📄 Description
Closes HFE-792 #4297 #4850
While importing OpenAPI a particular OpenAPI JSON file is being failed. This PR addresses that issue. It includes several changes to the OpenAPI importer to improve error handling, logging, and validation logic. The most important changes include making the validation less strict, adding detailed logging, and handling errors more gracefully during the importing process.
OpenAPI JSON File:
A-E.V3_OpenAPI.json
What's changed
titleorversionin theinfosection to be present instead of requiring both. (packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts)Notes to reviewers
packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts)packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts) [1] [2] [3]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.