[PR #2562] [MERGED] fix(zod): Add openapi call after catch #11831

Closed
opened 2026-05-06 16:27:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/2562
Author: @LaurenceJJones
Created: 2/28/2026
Status: Merged
Merged: 2/28/2026
Merged by: @oschwartz10612

Base: mainHead: fix/zod-openapi-catch-error


📝 Commits (1)

  • b0a34fa fix(openapi): Add openapi call after catch

📊 Changes

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

View changed files

📝 server/routers/siteResource/listSiteResources.ts (+12 -1)

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

fix: #2561
without making an explicit call to openapi a runtime error happens because it cannot infer a catch (UnknownZodTypeError), the call to openapi is the same across the codebase

How to test?

Calls to the integration api should succeed


🔄 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/fosrl/pangolin/pull/2562 **Author:** [@LaurenceJJones](https://github.com/LaurenceJJones) **Created:** 2/28/2026 **Status:** ✅ Merged **Merged:** 2/28/2026 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `main` ← **Head:** `fix/zod-openapi-catch-error` --- ### 📝 Commits (1) - [`b0a34fa`](https://github.com/fosrl/pangolin/commit/b0a34fa21bcbb437e98476285b049d42de104405) fix(openapi): Add openapi call after catch ### 📊 Changes **1 file changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/routers/siteResource/listSiteResources.ts` (+12 -1) </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description fix: #2561 without making an explicit call to openapi a runtime error happens because it cannot infer a catch (UnknownZodTypeError), the call to openapi is the same across the codebase ## How to test? Calls to the integration api should succeed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 16:27:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#11831