Skip to content

fix(openapi-generator): handle recursive schema forward references#2165

Open
jpenilla wants to merge 1 commit into
Effect-TS:mainfrom
jpenilla:fix/openapi-generator-recursive-forward-refs
Open

fix(openapi-generator): handle recursive schema forward references#2165
jpenilla wants to merge 1 commit into
Effect-TS:mainfrom
jpenilla:fix/openapi-generator-recursive-forward-refs

Conversation

@jpenilla
Copy link
Copy Markdown

Fixes @effect/openapi-generator output for mutually recursive schemas where an earlier recursive definition eagerly references a later recursive definition during module initialization.

Extends the existing forward-reference handling to also account for references between recursive definitions, avoiding import-time ReferenceErrors.

Closes #2156

Tested with:

  • pnpm test JsonSchemaGenerator.test.ts
  • pnpm check:tsgo

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 11, 2026

🦋 Changeset detected

Latest commit: 0b7079d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@effect/openapi-generator Patch
effect Patch
@effect/opentelemetry Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/vitest Patch
@effect/ai-anthropic Patch
@effect/ai-openai-compat Patch
@effect/ai-openai Patch
@effect/ai-openrouter Patch
@effect/atom-react Patch
@effect/atom-solid Patch
@effect/atom-vue Patch
@effect/sql-clickhouse Patch
@effect/sql-d1 Patch
@effect/sql-libsql Patch
@effect/sql-mssql Patch
@effect/sql-mysql2 Patch
@effect/sql-pg Patch
@effect/sql-pglite Patch
@effect/sql-sqlite-bun Patch
@effect/sql-sqlite-do Patch
@effect/sql-sqlite-node Patch
@effect/sql-sqlite-react-native Patch
@effect/sql-sqlite-wasm Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

@effect/openapi-generator emits eager forward references for recursive schemas

1 participant