[PR #36] [MERGED] Fix zod v3 compatibility by patching trpc-to-openapi #40

Closed
opened 2026-10-27 21:09:02 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/36
Author: @snomiao
Created: 7/18/2025
Status: ✅ Merged
Merged: 7/18/2025
Merged by: @snomiao

Base: main ← Head: sno-patch-zodv3


📝 Commits (2)

  • dc4eb0c Fix zod v3 compatibility by patching trpc-to-openapi
  • b3b798d refactor(route.ts): simplify handler implementation by using createOpenApiFetchHandler for better maintainability and clarity

📊 Changes

5 files changed (+178 additions, -114 deletions)

View changed files

📝 app/api/[...openapi]/route.ts (+9 -110)
📝 app/api/router.ts (+15 -3)
📝 bun.lock (+3 -0)
📝 package.json (+4 -1)
➕ patches/trpc-to-openapi@2.3.2.patch (+147 -0)

📄 Description

Summary

  • Update import from 'zod' to 'zod/v3' in router.ts to use zod v3 compatibility
  • Apply patch to trpc-to-openapi package to replace all zod imports with zod/v3
  • Remove dependency on zPullsStatus schema, inline output type definition
  • Update package.json with patchedDependencies configuration for bun

Test plan

  • Verify the API endpoints still work correctly
  • Test that OpenAPI schema generation works with zod v3
  • Ensure build passes without type errors
  • Test trpc procedures with new zod v3 compatibility

🤖 Generated with Claude Code


🔄 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/Comfy-Org/Comfy-PR/pull/36 **Author:** [@snomiao](https://github.com/snomiao) **Created:** 7/18/2025 **Status:** ✅ Merged **Merged:** 7/18/2025 **Merged by:** [@snomiao](https://github.com/snomiao) **Base:** `main` ← **Head:** `sno-patch-zodv3` --- ### 📝 Commits (2) - [`dc4eb0c`](https://github.com/Comfy-Org/Comfy-PR/commit/dc4eb0cc3940b67f647181e061506f07da5f905d) Fix zod v3 compatibility by patching trpc-to-openapi - [`b3b798d`](https://github.com/Comfy-Org/Comfy-PR/commit/b3b798dc131ee6abb43312b681b2bc74de6c6521) refactor(route.ts): simplify handler implementation by using createOpenApiFetchHandler for better maintainability and clarity ### 📊 Changes **5 files changed** (+178 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `app/api/[...openapi]/route.ts` (+9 -110) 📝 `app/api/router.ts` (+15 -3) 📝 `bun.lock` (+3 -0) 📝 `package.json` (+4 -1) ➕ `patches/trpc-to-openapi@2.3.2.patch` (+147 -0) </details> ### 📄 Description ## Summary - Update import from 'zod' to 'zod/v3' in router.ts to use zod v3 compatibility - Apply patch to trpc-to-openapi package to replace all zod imports with zod/v3 - Remove dependency on zPullsStatus schema, inline output type definition - Update package.json with patchedDependencies configuration for bun ## Test plan - [x] Verify the API endpoints still work correctly - [x] Test that OpenAPI schema generation works with zod v3 - [x] Ensure build passes without type errors - [x] Test trpc procedures with new zod v3 compatibility 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 21:09:02 +00: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
Comfy-Org/Comfy-PR#40
No description provided.