Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment.json does not replace variables in index.html #27

Open
dernate opened this issue Feb 8, 2023 · 0 comments
Open

environment.json does not replace variables in index.html #27

dernate opened this issue Feb 8, 2023 · 0 comments

Comments

@dernate
Copy link

dernate commented Feb 8, 2023

First of all, great tool, very helpful, thank you.

I unfortunately have a problem generating the documentation: when I run the following command on the console, the documentation is generated correctly as far as I can see, except that apparently the environment argument doesn't seem to take.

.\postman_doc_gen.exe my.postman_collection.json -o C:\Users\myuser\tmp\ -e C:\Users\myuser\my.postman_environment.json -d true

The output is as follows:
Success. Document generated at C:\Users\myuser\tmp\

The file index.html and folders (js, css) are available and the html doc seems to work properly, but the environment variables are not replaced on the left side of the documentation:
image

Am I doing something wrong?
Is the "-e" parameter intended differently?

Thanks for your help.

MetaData:
OS: Windows 11
postman-doc-gen version: 1.2.0
Postman.json files created with: Postman v10.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant