[PR #4645] [MERGED] fix(import/postman): handle non-string form values #4888

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4645
Author: @med8bra
Created: 12/25/2024
Status: Merged
Merged: 2/6/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/postman-import-number-values


📝 Commits (3)

  • 491e142 fix(import/postman): handle non-string form values
  • b15598c fix: stringify urlencoded value
  • 632aaf0 chore: cleanup

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/import-export/import/postman.ts (+2 -2)

📄 Description

What

Remove unsafe cast and convert value to string if needed, handling numerical values.

Why

This is a small fix for postman import process, according to Postman collection v2.1.0 the form data values should be string but when I tried to import a collection into Hoppscotch it failed due this format issue.

Here is a screenshot of the error, the import is pending (didn't notify user of import error)
image


🔄 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/4645 **Author:** [@med8bra](https://github.com/med8bra) **Created:** 12/25/2024 **Status:** ✅ Merged **Merged:** 2/6/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/postman-import-number-values` --- ### 📝 Commits (3) - [`491e142`](https://github.com/hoppscotch/hoppscotch/commit/491e142cba53bf5077060cc9d07f3ae229597c06) fix(import/postman): handle non-string form values - [`b15598c`](https://github.com/hoppscotch/hoppscotch/commit/b15598c1021bb03300b1615a2d6e44c6d4d2c071) fix: stringify urlencoded value - [`632aaf0`](https://github.com/hoppscotch/hoppscotch/commit/632aaf0837468ddedb7a868dd898728f6e887fde) chore: cleanup ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/postman.ts` (+2 -2) </details> ### 📄 Description ## What Remove unsafe cast and convert value to string if needed, handling numerical values. ## Why This is a small fix for postman import process, according to [Postman collection v2.1.0](https://schema.getpostman.com/json/collection/v2.1.0/collection.json) the form data values should be string but when I tried to import a collection into Hoppscotch it failed due this format issue. Here is a screenshot of the error, the import is pending (didn't notify user of import error) <img width="1297" alt="image" src="https://github.com/user-attachments/assets/e8429b0e-bd49-4a02-a57a-db177bf23394" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:23:02 +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#4888
No description provided.