diff --git a/docs/generator-template.md b/docs/generator-template.md index c223f9a1c..1772d3e64 100644 --- a/docs/generator-template.md +++ b/docs/generator-template.md @@ -332,7 +332,7 @@ Generator Error: This template requires the following missing params: server. Update your `test:generate` script in **package.json** to include the server param ```json -test:generate": "asyncapi generate fromTemplate test/fixtures/asyncapi.yml ./ --output test/project --force-write --param server=dev" +"test:generate": "asyncapi generate fromTemplate test/fixtures/asyncapi.yml ./ --output test/project --force-write --param server=dev" ``` You can now replace the static broker from `mqttBroker = 'test.mosquitto.org'` to `mqttBroker = "${asyncapi.servers().get(params.server).url()}"` in **index.js**.