[PR #4966] [MERGED] fix(common): OpenAPI response example status code bug #5004

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4966
Author: @nivedin
Created: 4/8/2025
Status: Merged
Merged: 4/8/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/openapi-response-code-bug


📝 Commits (2)

  • 46dfa1b fix: response example status code bug
  • 8b84e4d refactor: rename helper function to clarify behavior

📊 Changes

2 files changed (+18 additions, -3 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts (+4 -3)
packages/hoppscotch-common/src/helpers/utils/number.ts (+14 -0)

📄 Description

Closes #4956

  • This pull request fixes the bug where importing an OpenAPI request the examples show wrong status codes.
  • Also added a new file for the isNumber function .

🔄 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/4966 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 4/8/2025 **Status:** ✅ Merged **Merged:** 4/8/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/openapi-response-code-bug` --- ### 📝 Commits (2) - [`46dfa1b`](https://github.com/hoppscotch/hoppscotch/commit/46dfa1b51646e0fb98746ab658c657c2734a32c9) fix: response example status code bug - [`8b84e4d`](https://github.com/hoppscotch/hoppscotch/commit/8b84e4d4c639ee1313a185558325c6f3f052d67a) refactor: rename helper function to clarify behavior ### 📊 Changes **2 files changed** (+18 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/openapi.ts` (+4 -3) ➕ `packages/hoppscotch-common/src/helpers/utils/number.ts` (+14 -0) </details> ### 📄 Description Closes #4956 - This pull request fixes the bug where importing an OpenAPI request the examples show wrong status codes. - Also added a new file for the `isNumber` function . --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:29:28 +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#5004
No description provided.