This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Cannot resolve relative references when base directory is different #67
Labels
bug
Something isn't working
Describe the bug
If you try to use the library with an AsyncAPI file that uses relative references and you are not in the same directory (when running the library) it will fail to fetch the correct file.
How to Reproduce
If your setup is:
Where
asyncapi.yaml
reference thedictionary.yaml
, using a relative reference such as./dictionary.yaml
the library throws an error that the file cannot be found because it tries to look for it here:cupid/dictionary.yaml
.asyncapi.yaml file:
dictionary.yaml file:
Expected behavior
Expected when the
asyncapi.yaml
file is parsed, that it is parsed from it's base directory.The text was updated successfully, but these errors were encountered: