Closed md250721 closed 1 year ago
@md250721 The collection generated in case when SDK used is already in JSON format. One can simply stringify it using syntax mentioned as below in nodejs and print it or write to file.
// result is what module provides after conversion and one can access collection at mentioned path below
JSON.stringify(result.output[0].data, null, 2));
Let me know if I'm missing something here.
Thanks @VShingala - I'll close this issue
Currently, I see there is an option to pretty-print the collection object in the CLI using
-p
or--pretty
, but I don't see the option in the list here: https://github.com/postmanlabs/openapi-to-postman/blob/develop/OPTIONS.md Therefore, I'm not able to pretty-print the collection using the NodeJs module.Would you be able to add that as an option? Thank you