Skip to content

Conversation

@jonaslagoni
Copy link
Contributor

@jonaslagoni jonaslagoni commented Jan 25, 2026

Fixes #312


Note

  • Fix module resolution in getMessageTypeAndModule: For non-object payloads, derive messageModule from messageModel.modelName instead of messageType to avoid invalid identifiers (e.g., Pet[]).
  • Array/simple root payload support: Adds test coverage using a ConstrainedArrayModel (e.g., FindPetsByStatusAndCategoryResponse) and updates generated HTTP client types to FindPetsByStatusAndCategoryResponseModule.*.
  • Protocol code updates: Regenerates snapshots for AMQP, Kafka, MQTT, NATS, WebSocket, and HTTP to use the new module imports (* as <ModelName>Module) and corresponding unmarshal/types.
  • Minor test adjustments: Imports ConstrainedArrayModel and constructs array payload models in tests.

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

@vercel
Copy link

vercel bot commented Jan 25, 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 25, 2026 6:37pm
the-codegen-project-mcp Ready Ready Preview, Comment Jan 25, 2026 6:37pm

@netlify
Copy link

netlify bot commented Jan 25, 2026

Deploy Preview for the-codegen-project canceled.

Name Link
🔨 Latest commit 3339af5
🔍 Latest deploy log https://app.netlify.com/projects/the-codegen-project/deploys/697662cd2b9c6d00081e8f65

@jonaslagoni
Copy link
Contributor Author

🎉 This PR is included in version 0.63.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.

Test mock data produces invalid TypeScript for array response types

2 participants