Closed dvemnt closed 3 weeks 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.
duplicate of asyncapi/generator#963 - I have the same problem :/
duplicate of asyncapi/generator#963 - I have the same problem :/
I don't think that's duplicate. asyncapi/generator#963 is about the spec and unsupported place for reference, here is about paths handling.
As far as I understand, the spec does no longer allow absolute paths in references?
As far as I understand, the spec does no longer allow absolute paths in references?
Looks like, the spec still allow absolute paths in references, but generator (or parser) handles such paths in wrong way, as local paths, I think.
sorry but I'm unable to replicate your issue. I created a file that you shared and all was good.
I also opened a PR to show tests with different local references work https://github.com/asyncapi/generator/pull/1003
on message
level references should and were always possible.
As far as I understand, the spec does no longer allow absolute paths in references?
not sure where you got this message from, but spec is definitely still supporting $ref in message
object
you're right, sorry, I misunderstood your initial example.
yes, I can replicate this problem. It is for sure something that should work, and worked before
As a workaround, add file:
to the reference. And I'm moving this issue to parser repo, as it is bug in the repo, and not even the repo but the fact there was a move to another reference parser tool that do not work as expected: https://github.com/stoplightio/json-ref-resolver. So apparently some regression was introduced in functionality
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.
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart:
I think the issue is still there
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart:
Describe the bug
The latest version of the parser does not support referencing by absolute path. It works in version 1.9.18.
How to Reproduce
$ref
and file on this path in same folder.Expected behavior
Done! ✨ Check out your shiny new generated files at ...
Actual behavior