Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-generator-ref-resolution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@asyncapi/cli": patch
---

Fix generator failing to resolve external $ref files in same directory by passing the file source path instead of the Specification object
2 changes: 1 addition & 1 deletion src/domains/services/generator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class GeneratorService extends BaseService {
try {
await generator.generateFromString(asyncapi.text(), {
...genOption,
path: asyncapi,
path: asyncapi.getSource(),
});
} catch (err: unknown) {
s.stop('Generation failed');
Expand Down
Loading