Skip to content

Commit 8b09874

Browse files
authored
fix(server-hono): reuse active Zod instance for Swagger schemas (#1224)
* fix(server-hono): keep swagger docs populated on openapi fallback * fix(server-hono): reuse active zod instance for swagger schemas
1 parent a5dde84 commit 8b09874

4 files changed

Lines changed: 718 additions & 582 deletions

File tree

.changeset/smart-swagger-paths.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@voltagent/server-hono": patch
3+
---
4+
5+
fix(server-hono): generate Swagger schemas with a single Zod instance
6+
7+
Built-in Swagger route schemas now reuse the same schema definitions with the Zod instance selected
8+
by server-hono's OpenAPI compatibility layer. This avoids mixing Zod v3/v4 schema instances and
9+
prevents `/doc` from failing during OpenAPI generation.

0 commit comments

Comments
 (0)