From 88a8c664c3d8de0ae4431b9c3edb7594932f18ed Mon Sep 17 00:00:00 2001 From: Kaushik Rishi Manchukonda Date: Wed, 1 May 2024 14:21:11 +0530 Subject: [PATCH] readme v3 changes --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 46423d58..cd00072c 100644 --- a/README.md +++ b/README.md @@ -64,12 +64,12 @@ $ npm install -g @asyncapi/cli # Run generation from the root of the template to use tes MQTT example # To use the template -$ asyncapi generate fromTemplate test/mocks/mqtt/asyncapi.yml @asyncapi/nodejs-template -o test/output -p server=production +$ asyncapi generate fromTemplate test/mocks/mqtt/asyncapi-v3.yml @asyncapi/nodejs-template -o test/output -p server=production # OR # To test your local changes provided inside template -$ asyncapi generate fromTemplate test/mocks/mqtt/asyncapi.yml ./ -o test/output -p server=production +$ asyncapi generate fromTemplate test/mocks/mqtt/asyncapi-v3.yml ./ -o test/output -p server=production ## ## Install dependencies of generated library @@ -100,10 +100,6 @@ $ npm run test:example $ npm install mqtt -g #You should see the sent message in the logs of the started example. -#Notice that the server automatically validates incoming messages and logs out validation errors - -#publish an invalid message. -$ mqtt pub -t 'smartylighting/streetlights/1/0/event/123/lighting/measured' -h 'test.mosquitto.org' -m '{"id": 1, "lumens": "3", "sentAt": "2017-06-07T12:34:32.000Z"}' #publish a valid message $ mqtt pub -t 'smartylighting/streetlights/1/0/event/123/lighting/measured' -h 'test.mosquitto.org' -m '{"id": 1, "lumens": 3, "sentAt": "2017-06-07T12:34:32.000Z"}'