generator
generator copied to clipboard
[BUG] Docker container html template is not compatible with generator
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:
asyncapi-generator -i doc/input.yml -o doc/generated @asyncapi/html-template -p singleFile=true -p outFilename=out.html --force-write --debug
Warning: Ignoring extra certs from `/usr/local/share/ca-certificates/squid-ca-cert.crt`, load failed: error:02001002:system library:fopen:No such file or directory
Template installation started because you passed --install flag.
(node:43) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
Template @asyncapi/html-template successfully installed in /usr/local/lib/node_modules/@asyncapi/generator/node_modules/@asyncapi/html-template.
Version of used template is 2.3.9.
Something went wrong:
Error: This template is not compatible with the current version of the generator (2.0.3). This template is compatible with the following version range: >=1.15.0 <2.0.0.
at isTemplateCompatible (/usr/local/lib/node_modules/@asyncapi/generator/lib/templateConfigValidator.js:57:11)
at module.exports.validateTemplateConfig (/usr/local/lib/node_modules/@asyncapi/generator/lib/templateConfigValidator.js:30:3)
at Generator.configureTemplateWorkflow (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:314:5)
at async Generator.generate (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:202:5)
at async Generator.generateFromFile (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:503:12)
at async /usr/local/lib/node_modules/@asyncapi/generator/cli.js:157:9
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:
asyncapi config versions
(node:29241) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
@asyncapi/cli/2.0.3 darwin-arm64 node-v22.2.0
├@asyncapi/avro-schema-parser/3.0.24
├@asyncapi/bundler/0.5.5
├@asyncapi/converter/1.4.21
├@asyncapi/diff/0.4.1
├@asyncapi/generator/1.17.25
├@asyncapi/modelina-cli/4.0.0-next.52
├@asyncapi/openapi-schema-parser/3.0.24
├@asyncapi/optimizer/1.0.2
├@asyncapi/parser/3.1.0
├@asyncapi/protobuf-schema-parser/3.2.14
├@asyncapi/raml-dt-schema-parser/4.0.24
└@asyncapi/studio/0.20.2
asyncapi generate fromTemplate in.yml @asyncapi/html-template -o ./docs --force-write --debug
(node:29070) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
┌ AsyncAPI Generator
│
Template sources taken from .../node_modules/@asyncapi/html-template.
Version of used template is 2.3.9.
...
◇ Check out your shiny new generated files at ./docs.
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?
- [X] I checked and didn't find similar issue
🏢 Have you read the Contributing Guidelines?
- [X] I have read the Contributing Guidelines
Are you willing to work on this issue ?
No, someone else can work on it