Skip to content

Commit 98281ae

Browse files
Varadraj75derberg
andauthored
feat: add CLI v5 usage and expand generator compatibility for html-template (#766)
Co-authored-by: Varadraj75 <[email protected]> Co-authored-by: Lukasz Gornicki <[email protected]>
1 parent 00898af commit 98281ae

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ asyncapi generate fromTemplate <asyncapi.yaml> @asyncapi/[email protected]
4444
asyncapi generate fromTemplate <asyncapi.yaml> @asyncapi/[email protected] --use-new-generator
4545
```
4646

47+
> If you use template version v3.5 with AsyncAPI Generator v3 and AsyncAPI CLI v5
48+
49+
```bash
50+
asyncapi generate fromTemplate <asyncapi.yaml> @asyncapi/[email protected]
51+
```
52+
4753
You can replace `<asyncapi.yaml>` with local path or URL pointing to [any AsyncAPI document](https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml).
4854
Look into [Releases](/asyncapi/html-template/releases) of this template to pick up the version you need. It is not recommended to always use the latest in production. Always use a specific version.
4955

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"generator": {
6060
"renderer": "react",
6161
"apiVersion": "v3",
62-
"generator": ">=2.0.0 <3.0.0",
62+
"generator": ">=2.0.0 <4.0.0",
6363
"conditionalGeneration": {
6464
"css": {
6565
"parameter": "singleFile",

0 commit comments

Comments
 (0)