Skip to content

[BUG] CLI v5 does not accept html-template v3.0.0+ #765

@pioneer2k

Description

@pioneer2k

Describe the bug.

We are trying to migrate from CLI v4 to v5. We used the html-template 3.1.0 together with the flag --use-new-generator before, which worked good.
For the migration we simply removed the flag --use-new-generator as suggested because the new generator should be the default.
But the generator gives us the following error:
This template is not compatible with the current version of the generator (3.0.1). This template is compatible with the following version range: >=2.0.0 <3.0.0.

Expected behavior

We expect that all 3.x.x versions of the html-template are working

Screenshots

Image

How to Reproduce

GitHub Actions example:

   - name: ✨ Generating HTML from CheckoutOrders AsyncAPI document
     uses: asyncapi/cli@22eb79671299941961e829b8e4314c98d4b3f14d # v5.0.2
     with:
       template: '@asyncapi/html-template@3.4.0'
       filepath: src/main/resources/asyncapi_checkoutOrders.yml
       parameters: --force-write
       output: asyncapi/checkout-orders-asyncapi-generated-html

🖥️ Device Information [optional]

  • Operating System (OS): Ubuntu 22.04
  • Browser: -
  • Browser Version: -

👀 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 ?

No, someone else can work on it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions