mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3948] [CLOSED] feat: console error messages and better names for requests imported from openapi #4611
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#4611
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/3948
Author: @sawa-ko
Created: 3/29/2024
Status: ❌ Closed
Base:
main← Head:feat/show-error-message-in-console-openapi-import📝 Commits (1)
d9dae2afeat: console error messages and better names for requests imported from openapi📊 Changes
3 files changed (+42 additions, -22 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+1 -1)📝
packages/hoppscotch-common/locales/es.json(+4 -4)📝
packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts(+37 -17)📄 Description
Closes #
Description
This PR shows an error message in console when an error occurs when parsing the OpenAPi file, since actually there is no error message, just a generic message, and it is impossible to know why the import failed (I spent 30 minutes looking for what was wrong with my file lol).
Also, in the requests, we currently try to obtain the name with the following steps:
Currently, most of the request names always arrive in this 3rd step because usually the schemas that I have found do not define the summary property or things like that, so in this PR we try to extract the name from the URL of the request, so that the name is more understandable and not have folder with requests named as untitled request. Attached is evidence of how it was before and how it is now.
Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.