Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

[BUG] AsyncAPI v3 support #401

Closed
2 tasks done
PedroQwe opened this issue Aug 8, 2024 · 4 comments
Closed
2 tasks done

[BUG] AsyncAPI v3 support #401

PedroQwe opened this issue Aug 8, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@PedroQwe
Copy link

PedroQwe commented Aug 8, 2024

Describe the bug.

I am trying to use the asyncapi/github-action-for-cli to generate models from a file using AsyncAPI v3 and I am getting this error: Error: Generate Models command does not support AsyncAPI v3 yet, please checkout https://github.com/asyncapi/modelina/issues/1376

However, the issue 1376 has already been fixed and asyncapi cli already supports v3.

Expected behavior

The models should be generated given that asyncapi cli already supports v3.

Screenshots

image

How to Reproduce

  1. Create a AsyncAPI specification file following v3
  2. Create a github action to generate models from the file created in step 1.

🥦 Browser

Google Chrome

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

@PedroQwe PedroQwe added the bug Something isn't working label Aug 8, 2024
Copy link

github-actions bot commented Aug 8, 2024

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.

@pioneer2k
Copy link
Contributor

@PedroQwe is there a reason why do you use such an old version of the markdown-template? I think v3 support was coming with the release 1.4.0 of that template. Maybe that is the problem?
We are using the generator with the latest html-template and eveything is working fine with v3 spec files.

@Shurtu-gal
Copy link
Collaborator

@PedroQwe the problem lies in the version of CLI.

You have two options:

Note

FYI: we are working on tying CLI and GitHub action versioning for better experience, so you wouldn't have to face these problems.

@Shurtu-gal
Copy link
Collaborator

Please let me know if this works and I will move forward with closing this ticket.

@Shurtu-gal Shurtu-gal self-assigned this Aug 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants