mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 05:57:32 +01:00
Production answered 500 with 'externalPublishSchema.openapi is not a function'. With zod 4, extendZodWithOpenApi only gives .openapi to schemas built after it runs; the production bundle evaluated config/external-publish before lib/openapi/registry. Name imported schemas through named(), which calls the method off the prototype, so load order no longer matters. The regression test imports the schemas first, exactly as production did. Claude-Session: https://claude.ai/code/session_01TDTqcifctAar8o5hcbD3pE Co-authored-by: Claude <noreply@anthropic.com>