genoas [file | url]
genoas [file | url] [--host host] [--title title] [--desc description] [--version version]
Just downloaded so that I could give it a try.
It states "Reading Catalog file........"
ERROR: Error: connect ECONNREFUSED 127.0.0.1:80
The error message that you are seeing indicates that an HTTP connection to localhost port 80 failed.
Is your catalog hosted at 126.96.36.199:80?
How does your command line look like?
Please let me know.
Thank you and regards,
After reading your comment, I believe I realized the issue.
If I copy a Catalog file into my PAS /webapps/ROOT/static instance then it creates a "yaml" file.
Reading catalog file 'localhost:8820/.../CountryBusinessEntity.json
OpenAPI spec written to CountryBusinessEntity.yaml
However, I did interpret the "genoas [file | url]" from the README file that I could run "genoas" against a local "catalog" file without the need of PAS.
Many thanks for the feedback.
Yes, you should be able to work with a local file.
The command works fine with a local file with a relative path.
The issue was when working with an absolute path. The code handled it as if it was a URL.
I have updated the code to work with an absolute path to local files
Please use the updated zip file.
Thank you and regards.