Skip to content

fix: resolve external ref files in subdirectory not found since v3.3.0#2106

Open
ledgerpilot wants to merge 3 commits intoasyncapi:masterfrom
ledgerpilot:ledgerpilot/fix-1839
Open

fix: resolve external ref files in subdirectory not found since v3.3.0#2106
ledgerpilot wants to merge 3 commits intoasyncapi:masterfrom
ledgerpilot:ledgerpilot/fix-1839

Conversation

@ledgerpilot
Copy link
Copy Markdown

Closes #1839

What changed

The fix ensures that the AsyncAPI generator uses the directory of the main input contract file as the base for resolving relative $refs, rather than the current working directory.

Files modified

  • src/apps/cli/internal/utils/documentPathResolver.ts

Draft PR — please review before merging.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: 6249915

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

This PR includes changesets to release 1 package
Name Type
@asyncapi/cli 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

@ledgerpilot ledgerpilot marked this pull request as ready for review April 7, 2026 23:55
@ledgerpilot ledgerpilot changed the title fix: [BUG] external files in same directory are not resolved via $ref anymo fix: resolve external ref files in subdirectory not found since v3.3.0 Apr 8, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 8, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] external files in same directory are not resolved via $ref anymore, since v3.3.0

1 participant