Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for the-codegen-project canceled.
|
|
Re: Date unmarshal bug Acknowledged. This is a valid bug that will require fixes in two places:
Tracking this for a follow-up fix that spans both repos. |
- Remove 'time' format from isDateFormatModel to prevent Invalid Date (time strings like "14:30:00" are not valid Date constructor args) - Exclude ConstrainedUnionModel from hasItemUnmarshal to prevent undefined Union.unmarshal reference for tuple arrays 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 4 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| } | ||
|
|
||
|
|
||
| export { FormatTime }; No newline at end of file |
There was a problem hiding this comment.
FormatTime incorrectly modeled as Date
High Severity
FormatTime is generated as type FormatTime = Date, but unmarshal returns JSON.parse(json) (a string) and marshal relies on JSON.stringify of a Date. This creates a runtime/typing mismatch and breaks the stated intent that RFC3339 time values remain strings.
| } | ||
|
|
||
|
|
||
| export { NullPlain }; No newline at end of file |
There was a problem hiding this comment.
Null payload type alias is wrong
Medium Severity
NullPlain is generated as type NullPlain = any, while the module’s unmarshal returns null and marshal only accepts null. This makes the exported type inconsistent with the actual API and can let invalid values type-check even though marshal can’t accept them.


Note
Medium Risk
Touches core TypeScript codegen for serialization and validation, which can change generated types/behavior (notably
Datehandling and union schema shape) across many outputs.Overview
Improves TypeScript generator output by adding explicit support for
nullanddate/date-timeformats in primitive marshalling/unmarshalling (including converting date strings toDateonunmarshal) and tightening arrayunmarshalso it doesn’t call.unmarshal()on nested arrays or union aliases.Updates generated AJV
validatehelpers to accept marshalled JSON strings (auto-JSON.parse) and adjusts schema serialization to drop a conflicting roottype: "object"ononeOf/anyOfunions, which changes generated snapshots.Bumps
@asyncapi/modelinato6.0.0-next.10and adds a new runtime test fixture + generation target for comprehensive AsyncAPI payload type coverage (newtest:payload-types/generate:payload-types).Written by Cursor Bugbot for commit 5d5c9cb. This will update automatically on new commits. Configure here.