-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: follow generator v2 that drops node support prior v18 (#615)
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,19 @@ npm install -g @asyncapi/cli | |
|
||
Generate using CLI | ||
|
||
> If you use template version v1 or v2 with AsyncAPI Generator v1 | ||
```bash | ||
asyncapi generate fromTemplate <asyncapi.yaml> @asyncapi/[email protected] | ||
``` | ||
|
||
> If you use template version v3 with AsyncAPI Generator v2 | ||
```bash | ||
asyncapi generate fromTemplate <asyncapi.yaml> @asyncapi/html-template@0.28.0 | ||
asyncapi generate fromTemplate <asyncapi.yaml> @asyncapi/html-template@3.0.0 --use-new-generator | ||
``` | ||
|
||
You can replace `<asyncapi.yaml>` with local path or URL pointing to [any AsyncAPI document](https://raw.githubusercontent.com/asyncapi/spec/master/examples/streetlights-kafka.yml). | ||
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). | ||
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. | ||
|
||
## Supported parameters | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters