Closed nicolas-soyeur closed 3 years ago
hi!
I tried to run all examples from https://github.com/asyncapi/asyncapi/tree/master/examples/2.0.0. All of them I got errors.
Mainly I got the following error:
Something went wrong:
Template render error: (C:\Users\usuario\AppData\Roaming\npm\node_modules\@asyncapi\generator\node_modules\@asyncapi**java-spring-template\template\src\test\java\com\asyncapi\SimpleKafkaTest.java) [Line 13, Column 64]
Error: Unable to call the return value of (the return value of (channel["subscribe"])["message"])["payload"]
, which is undefined or falsey**
at Object._prettifyError (C:\Users\usuario\AppData\Roaming\npm\node_modules\@asyncapi\generator\node_modules\nunjucks\src\lib.js:36:11)
at C:\Users\usuario\AppData\Roaming\npm\node_modules\@asyncapi\generator\node_modules\nunjucks\src\environment.js:561:19
at Template.root [as rootRenderFunc] (eval at _compile (C:\Users\usuario\AppData\Roaming\npm\node_modules\@asyncapi\generator\node_modules\nunjucks\src\environment.js:631:18),
These are the versions which I have been working:
Which is the combination correct?
This issue has been automatically marked as stale because it has not had recent activity :sleeping: It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation. Thank you for your contributions :heart:
:tada: This issue has been resolved in version 0.20.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Describe the bug
An error occur during the generation of an example of "oneOf". Details of the error si below. I dont know if this asyncapi example can be used like this or not.
How to Reproduce
I tried to run the generation with the example below and I got the error. https://github.com/asyncapi/asyncapi/blob/master/examples/2.0.0/oneof.yml