-
-
Notifications
You must be signed in to change notification settings - Fork 338
Description
checked with latest 3.3.1
Problem might be in https://github.com/asyncapi/generator/blob/master/apps/generator/lib/templates/config/loader.js#L47. Tests should be checked for
loadDefaultValues.in
html-templateconfig https://github.com/asyncapi/html-template/blob/master/package.json#L90-L93singleFiledefault isfalse. So if you do not pass this parameter,falsevalue should be injected with context into generation process.This
falsedefault value is critical for another setting (conditional generation): https://github.com/asyncapi/html-template/blob/master/package.json#L63-L75 which means that requiredcssandjsfolders will be rendered in output only fisingleFileis set tofalse.
asyncapi generate fromTemplate test/spec/asyncapi_v3.yml ./ -o dupa --use-new-generator --force-write -p singleFile=falseworks as expected,falsegoes through, so directories are there. Of course flahsingleFile=trueworks as well.
Problem is that during generation in case like
asyncapi generate fromTemplate test/spec/asyncapi_v3.yml ./ -o dupa --use-new-generator --force-writethe template getssingleFileas undefined (doesn't get it at all). I can only see the following defaults{ "outFilename": "index.html", "pdfTimeout": 30000 }So there is for sure a bug in generator, it is not handling default values set to
false