Closed nilkanth987 closed 7 months ago
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
@nilkanth987 are you having the same issue as https://github.com/asyncapi/bundler/issues/35.
@Souvikns , Sorry for delayed reply. Yes the issue is same BUT I DID PUT THE GENERATOR SCRIPT FILE IN SAME DIRECTORY AS THE asyncapi.yml
FILE AND IT FIXES THE ISSUE, but it does not reference properly the files that are inside the different folder.
HERE IS MY DIRECTORY STRUCTURE
docs
- schemas
- schema1.yml
- schema2.yml
- components
- comp1.yml (ref: ../schemas/schema1.yml THIS IS NOT RESOLVED)
- comp2.yml
asyncapi.yml
bundleScript.cjs (Tried this)
app.js (Tried this)
Let me know if you need any clarity
Need the same feature.
:tada: This issue has been resolved in version 0.5.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Reason/Context
Add an option to specify the base file's directory so we can correctly check for relative references of separate files in the specifications.
I created an
asyncapi.yml
in thedocs
folder and in that file I referenced other files with the relative path. And this causes unresolved reference to the file.Description
Here is an example of the
asyncapi.yml
file indocs
directoryHere is the
serves.yml
file indocs
directoryHere is the
app.js
code in root directoryThis is the error that I get
Let me know if I could help