[PR #862] [MERGED] Allow importing environment variables via Postman environment json files #2913

Closed
opened 2026-03-17 00:34:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/862
Author: @sboulema
Created: 5/11/2020
Status: Merged
Merged: 5/11/2020
Merged by: @liyasthomas

Base: masterHead: feature/#759


📝 Commits (2)

  • 39a7d73 Allow importing environment variables via Postman environment json files
  • d447029 Merge branch 'master' into feature/#759

📊 Changes

1 file changed (+19 additions, -6 deletions)

View changed files

📝 components/environments/importExportEnvironment.vue (+19 -6)

📄 Description

When importing a JSON file during the environment import we check for the Postman specific field _postman_variable_scope which should be set to environment.

If so, we re-format the JSON to the Postwoman structure and call the existing import function.
If not, we assume it is a Postwoman file and import it as usual.

This PR intends to add the feature discussed in #759


🔄 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/862 **Author:** [@sboulema](https://github.com/sboulema) **Created:** 5/11/2020 **Status:** ✅ Merged **Merged:** 5/11/2020 **Merged by:** [@liyasthomas](https://github.com/liyasthomas) **Base:** `master` ← **Head:** `feature/#759` --- ### 📝 Commits (2) - [`39a7d73`](https://github.com/hoppscotch/hoppscotch/commit/39a7d73430ff634ae1efda4800f6485c3af66eeb) Allow importing environment variables via Postman environment json files - [`d447029`](https://github.com/hoppscotch/hoppscotch/commit/d447029cdcfa8c1160e710568248ab71ee72fc98) Merge branch 'master' into feature/#759 ### 📊 Changes **1 file changed** (+19 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `components/environments/importExportEnvironment.vue` (+19 -6) </details> ### 📄 Description When importing a JSON file during the environment import we check for the Postman specific field `_postman_variable_scope` which should be set to `environment`. If so, we re-format the JSON to the Postwoman structure and call the existing import function. If not, we assume it is a Postwoman file and import it as usual. This PR intends to add the feature discussed in #759 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:34:37 +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#2913
No description provided.