-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update $ref
s after moving components to components
#263
fix: update $ref
s after moving components to components
#263
Conversation
Hey @aeworxet If we leave the bundler out of the picture here, can you add a an example on which the optimizer is not producing the right output and how this PR resolves the issue? |
Right now, My main question is whether It's just that in the current version, the |
@aeworxet based on the specification of Operation Object in v3:
and for messages:
|
I think the issue is bigger. 1
Which one is it? 2
So it is allowed to move Or should it be there in the root, but pointing only to And not only the fact that the root contains 3
And when I remove So I think that Parser's validation rules need to be reviewed, and there needs to be implemented Parser's pre-validation, which will validate optimized files before giving them outside, as I did it with Comments? |
Quality Gate passedIssues Measures |
Checked outputs manually and here are some remarks.
Input file validates OK. Output file gives validation errors:
|
There is no limitation on the usage of What mask should I use to find property
in this file, then?
|
The issues raised are too complex and should be resolved through separate PRs, so I'm closing this one. |
This PR updates
$ref
s of the AsyncAPI Document after moving the AsyncAPI components to thecomponents
section by prefixing the corresponding JSON Pointers with the characterscomponents/
.Addresses issue described in asyncapi/cli#1323 (comment).