Files
CatoandClaude dd7e5537f1 fix(api): /api/v1/openapi.json no longer depends on module load order (#1223)
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>
2026-10-03 11:43:45 -07:00
..