postmanerator
postmanerator copied to clipboard
Using `hu` theme gives an error
Used following command to download theme
postmanerator themes get hu
It was downloaded successfully. Running postmanerator themes list
does show it in list. Tried to create documentation using following command.
postmanerator -collection=collection.json -environment=environment.json -theme=hu -output=output/index.html
Terminal throws following error:
Generating output... FAIL. template: index.tpl:92: function "findRequest" not defined
Same withmarkdown
theme. Only default theme is working.
Hello @fawazcb, I recently performed a few updates on the codebase that introduced some breaking changes. By now I only updated the default theme, but I will also update the markdown theme soon.
Regarding the hu theme, I suggest you address an issue on the maintainer repository :)
In the meantime, you can either:
- stay with the default theme
- use a previous version of Postmanerator
- fork and adapt the hu or markdown themes (PR are welcome :))
@aubm thanks for the details, I get the same error when not specifying any template:
postmanerator_darwin_386 -collection=./aiapi.json -output=./aiapi.html
Generating output... FAIL. template: index.tpl:76: function "findRequest" not defined
same here, any fix?
This is strange, maybe you are working with an outdated version of the default theme.
Try re-running your command after running postmanerator themes delete default
.
Automatically checking for themes updates before generating a documentation might be an idea.