Skip to content

fix: match exact type headers when deduplicating codegen types - #94

Merged
mhweiner merged 1 commit into
mainfrom
fix/codegen-type-dedup-prefix
Aug 26, 2026
Merged

fix: match exact type headers when deduplicating codegen types#94
mhweiner merged 1 commit into
mainfrom
fix/codegen-type-dedup-prefix

Conversation

@logfox-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes client codegen skipping shorter type definitions when longer nested oneOf types share the same name prefix (e.g. GetNotificationRulesOutputItem vs GetNotificationRulesOutputItemDeliveryMethodConfigOneOf1).
  • Dedup now checks for an exact export type Name header (startsWith) instead of substring includes.
  • Adds regression test: array-of-object route output with nested oneOf must emit the array item type.

Test plan

  • npm run validate
  • Local Bugbot — no findings
  • After merge: bump app-frontend to published callspec and remove patch 2 from patch-callspec-codegen.mjs

Made with Cursor

Substring dedup skipped array item types when longer nested oneOf
branch types shared the same prefix. Add a regression test.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mhweiner
mhweiner merged commit 913f468 into main Aug 26, 2026
3 checks passed
@mhweiner
mhweiner deleted the fix/codegen-type-dedup-prefix branch August 26, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants