Skip to content

refactor: remove x-forge-globals - #25

Open
dimitropoulos wants to merge 2 commits into
mainfrom
remove-x-forge-globals
Open

dimitropoulos wants to merge 2 commits into
mainfrom
remove-x-forge-globals

Conversation

@dimitropoulos

@dimitropoulos dimitropoulos commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Removes the x-forge-globals OpenAPI extension and everything it fed.

  • fern-forge no longer accepts x-forge-globals or emits the globals operation metadata.
  • forge no longer reads it from overlays or source specs.
  • Schema.command.globalCliArgs is gone. x-forge-globals was its only source.
  • README extension table and argument reference updated.

cf's matching change is cloudflare/cf#250, which re-vendors @cloudflare/forge from this branch.

pnpm typecheck, pnpm test, oxlint, and oxfmt pass.

Forge no longer reads x-forge-globals or carries the globals operation
metadata it populated. Command globalCliArgs is always empty.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The extension was removed consistently across types, parsing, schemas, tests, and documentation.

0 open findings

What changed in this PR

Removes the deprecated x-forge-globals extension across Forge ingestion and Fern projection.

Changes:

  • Removes extension parsing and schema support.
  • Ensures globalCliArgs is always empty.
  • Updates tests and documentation.
File Description
packages/​forge/​overlay-types.ts Removes the extension type.
packages/​forge/​overlay-source.ts Stops emitting globals from overlays.
packages/​forge/​init-from-openapi.ts Stops reading globals from OpenAPI.
packages/​fern-forge/​schemas/​operation.ts Rejects the removed extension.
packages/​fern-forge/​parser.ts Removes normalized globals metadata.
packages/​fern-forge/​index.test.ts Updates accepted-field coverage.
packages/​fern-forge/​README.md Removes extension documentation.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

x-forge-globals was its only source.
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