Skip to content

Conversation

@jonaslagoni
Copy link
Contributor

@jonaslagoni jonaslagoni commented Jan 27, 2026

fixes #316


Note

Eliminates protocol-global state for HTTP client codegen and switches to a stateless check to generate common types once per run.

  • Removes resetHttpCommonTypesState and httpCommonTypesGenerated from asyncapi.ts, openapi.ts, and protocols/http/index.ts
  • Generates renderHttpCommonTypes only when protocolCodeFunctions['http_client'] is empty and there are renders, in both OpenAPI and AsyncAPI paths
  • Keeps dependency collection and render aggregation intact; affects only http_client

Written by Cursor Bugbot for commit 31b0304. This will update automatically on new commits. Configure here.

@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for the-codegen-project canceled.

Name Link
🔨 Latest commit 31b0304
🔍 Latest deploy log https://app.netlify.com/projects/the-codegen-project/deploys/6979d09fc66f580008dcd450

@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
the-codegen-project Ready Ready Preview, Comment Jan 28, 2026 9:04am
the-codegen-project-mcp Ready Ready Preview, Comment Jan 28, 2026 9:04am

@jonaslagoni jonaslagoni merged commit 0b56ee5 into main Jan 28, 2026
22 checks passed
@jonaslagoni jonaslagoni deleted the fix_global_http_state branch January 28, 2026 09:17
@jonaslagoni
Copy link
Contributor Author

🎉 This PR is included in version 0.64.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAPI generator uses global state

2 participants