nodejs-template icon indicating copy to clipboard operation
nodejs-template copied to clipboard

AsyncAPI spec v3 support in Node.js template

Open jonaslagoni opened this issue 2 years ago • 2 comments

Reason/Context

This Issue is used to track changes needed to support AsyncAPI v3. As a code owner, please edit this list of TODO tasks in order to properly track the progress 🙂 Once this issue is closed it means that v3 is now fully supported in this library.

Remaining tasks:

jonaslagoni avatar Jun 05 '23 13:06 jonaslagoni

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

github-actions[bot] avatar Jun 05 '23 13:06 github-actions[bot]

@derberg Any progress on this? I would like to start using AsyncAPI and it feels like it would be best to start with the new spec version right away, but it feels like most of the code generators are not compatible yet. Or is it still recommended to go with v2 of the spec?

lukas-mertens avatar Jan 31 '24 12:01 lukas-mertens

v3 release done, and coincidence is that it also support asyncapi v3 https://github.com/asyncapi/nodejs-template/releases/tag/v3.0.0

anyway, if there are any issues, feel free to report them

derberg avatar May 07 '24 13:05 derberg

Is v3 supported in nodejs-template? I get this error when I try:

 asyncapi generate fromTemplate email-service-3.0.yaml @asyncapi/nodejs-template -o email-service-3.0 -p server=test

┌  AsyncAPI Generator
Error: @asyncapi/nodejs-template template does not support AsyncAPI v3 documents, please checkout https://github.com/asyncapi/nodejs-template/issues/215

meteatamel avatar May 07 '24 14:05 meteatamel

@meteatamel thanks! opened PR to CLI -> https://github.com/asyncapi/cli/pull/1412

derberg avatar May 08 '24 08:05 derberg

@meteatamel the latest AsyncAPI CLI release fixes the problem

derberg avatar May 08 '24 14:05 derberg

Thanks @derberg, I tested and the code generation for Node.js works now with 3. 0

meteatamel avatar May 09 '24 10:05 meteatamel

Great!!! Thanks for confirmation!

fyi @kaushik-rishi

derberg avatar May 09 '24 13:05 derberg