Closed DenisNovac closed 3 months ago
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.
Hey there, sorry for late response - vacation and some other harder moments in life 😄
It is downloading latest (2.3.9) html-template automatically
what do you mean? docker image with generator do not contain html-template.
when you run asyncapi-generator -i doc/input.yml -o doc/generated @asyncapi/html-template -p singleFile=true -p outFilename=out.html --force-write --debug
the generator downloads template on the fly, with latest version as @asyncapi/html-template
means latest -> have a read of https://www.asyncapi.com/docs/tools/generator/versioning
asyncapi generate fromTemplate in.yml @asyncapi/html-template -o ./docs --force-write --debug
yes, this works, cause if you look into the output of asyncapi config versions
the version of generator in the CLI is older than v2. html-template
is not yet on v2. We need to get https://github.com/asyncapi/cli/issues/1388 done first.
I definitely discourage you from using the docker image provided by generator, with Generator CLI because we will anyway set it to deprecation -> https://github.com/asyncapi/generator/issues/1212. You probably noticed that in generator docs we do not even talk about Generator CLI anymore
does that help?
Thank you for answering!
html-template is not yet on v2
I guess, this explains my problem. Long story short - our CI upgraded the container to v2 and started to fail at some point. I just downgraded it and now it works. Maybe next time we will update it when v2 is supported.
Describe the bug.
I am using docker container https://hub.docker.com/r/asyncapi/generator , version 2.0.3
It is downloading latest (2.3.9) html-template automatically:
There is no newer versions neither for html-template nor for generator.
However, when i do the same in local CLI for the same file - it works:
Expected behavior
Latest version of generator should be compatible with latest version of template.
Screenshots
This bug is CLI-based
How to Reproduce
Generate html doc using latest (2.0.3) version of docker container https://hub.docker.com/r/asyncapi/generator/tags
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
No, someone else can work on it