-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
AsyncAPI spec v3 support in CLI #629
Comments
@Souvikns @magicmatatjahu @derberg @boyney123 would it make sense add something like the following check for each command:
And then we can remove that check once the dependency has been updated with support for v3 in the specific tools? That way we don't need any feature branch, nor worry about weird error codes from commands when you try to use an AsyncAPI v3 document for commands that don't yet support it. |
@jonaslagoni Rather than throwing error we can inform (by some warning) about alpha support for 3.0 to test it earlier, so people can use cli for 3.0, however with the knowledge that something doesn't work/isn't supported/has bugs. |
So instead of stopping the call in it's track, you want to warn people that it might or might not work? |
@jonaslagoni Exactly. EDIT: However, having thought about it, your idea makes more sense. As there will be support in tolling we can immediately remove this error for the given command. |
I am gonna prepare a PR tomorrow unless other join the discussion 🙂 |
Yeah, I think we can throw a warning instead of an error for now, all command throws a warning but once the command is updated for 3.0 we can just remove the warnings for that command. |
I'm immediately thinking how we can automate it, instead of manually adding warning/error where needed, then manually removing it. Maybe we can figure out a different way 🤔 Like an |
@derberg I am all for automation, however for v3, I would stick with just failing the commands if v3 is not supported 😄 That way we don't have to rush into a solution but could target it for any next major versions of the spec. |
@jonaslagoni yeah, definitely, I mean that instead of hardcoding it in CLI, we can agree on a setting in
we already have similar thing in |
All makes sense to me 😄 Great to have for next major release 💪 |
wait wait, are you having some personal goal to work on your assertiveness skills 😆
you know it doesn't make sense, right? right? 😆 it is an easy thing to do, we just need to agree on how should such an info be presented in |
Haha, please do then 💪 🎉 |
@derberg I like this idea of having flags at the library level to prevent CLI from running the command and outputting meaningful error messages if the library does not support the current spec version. I want to help build this. I watched https://www.youtube.com/watch?v=hc0Lxr3G8T4 and what I understood is that we do hardcoding now but then update it in the future. So for now we:
Let me know how I can get started with this, also should we move this to a separate issue? |
@Souvikns best would be to start new issue |
FIrst iteration on supporting v3 for validating docs #770 |
asyncapi/bundler#133 is marked as done and bundler 0.4.0 has been integrated into latest cli releases. Is it expected that cli still display Anyway, it's confusing for users. |
@cykl if you have a spare minute please help remove the hard coded check if the bunder support it and have been updated here ✌️ |
@jonaslagoni I think we can close this as https://github.com/asyncapi-archived-repos/cupid is archived |
Lets close as soon as we enable v3 for Modelina in #1376 |
@jonaslagoni we can close this ? |
Yep 😊 |
Reason/Context
This Issue is used to track changes needed to support AsyncAPI v3. As a code owner, please edit this list of TODO tasks in order to properly track the progress 🙂 Once this issue is closed it means that v3 is now fully supported in this library.
Potentially, disable certain commands if they don't support v3.
Scope
The text was updated successfully, but these errors were encountered: