Skip to content

fix: preserve scalar and array body properties wrapped in allOf - #18

Merged
petebacondarwin merged 1 commit into
mainfrom
codex/fix-scalar-allof
Oct 7, 2026
Merged

petebacondarwin merged 1 commit into
mainfrom
codex/fix-scalar-allof

Conversation

@petebacondarwin

Copy link
Copy Markdown
Collaborator

Single-member allOf wrappers around scalar and array body properties were treated as object compositions and omitted from OperationInfo.bodyParams. This drops flags such as --config-source and --connector-id when an upstream schema attaches x-fern-property-name to a referenced field, as seen in cloudflare/cf#220.

Resolve these wrappers during top-level and nested body-property extraction, preserving inherited schema metadata and property-local annotations. Regression tests cover renamed fields, enums, defaults, requiredness, sensitivity, read-only properties, nested wrappers, and scalar and object arrays.

Validation:

  • pnpm check
  • pnpm --filter @cloudflare/forge test — 37 tests passed
  • pnpm --filter @cloudflare/forge typecheck
  • Integration in cf using the vendored resolver: pnpm check, 1,483 CLI tests, and 637 Wrangler compatibility tests passed.

@petebacondarwin
petebacondarwin merged commit e522a86 into main Oct 7, 2026
7 checks passed
@petebacondarwin
petebacondarwin deleted the codex/fix-scalar-allof branch October 7, 2026 08:36
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