[PR #4398] [MERGED] fix: add fallback for type field in restTabState schema #4781

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4398
Author: @nivedin
Created: 10/3/2024
Status: Merged
Merged: 10/3/2024
Merged by: @jamesgeorge007

Base: nextHead: fix/rest-tab-schema-type-bug


📝 Commits (1)

  • 2280bc4 fix: add fallback for type key in rest tab schema

📊 Changes

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

View changed files

📝 packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts (+2 -2)

📄 Description

This PR fixes the issue with rest tab schema where the tab didn't have type property that lead's to app crashing.

What's changed

A catch was added to the type property where the default value will be set to "request"


🔄 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/4398 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 10/3/2024 **Status:** ✅ Merged **Merged:** 10/3/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `fix/rest-tab-schema-type-bug` --- ### 📝 Commits (1) - [`2280bc4`](https://github.com/hoppscotch/hoppscotch/commit/2280bc4129fd02ea72bd1c2fe6df0b33f743a0a3) fix: add fallback for type key in rest tab schema ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts` (+2 -2) </details> ### 📄 Description This PR fixes the issue with rest tab schema where the tab didn't have type property that lead's to app crashing. ### What's changed A catch was added to the type property where the default value will be set to "request" --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:17:19 +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#4781
No description provided.