-
Notifications
You must be signed in to change notification settings - Fork 227
Feature/cli converter options #218
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
Feature/cli converter options #218
Conversation
|
Great proposal @FrazerBayley, it was a greatly missed option. Would you mind if I add a config.json sample to this PR? |
|
Perhaps you could add the following default options in the examples folder: And extend the readme with the description of each option, like explained in the options.js file.
These are the same options as when you try to import an OpenApi spec in Postman. |
Added Postman test suite settings, which allow you to define which type of test to be included or not in the postman generation Added Post test suite file loading (inspired by postmanlabs#218) option for the CLI Added postman-testsuite.json example
|
I have created a PR for an extension to generate postman test scripts based on the OpenApi. Thanks for the great addition, now lets hope your PR gets approved. For reference my PR: #225 |
|
@thim81 would you mind putting the table that you created above into the README? Since you already have it created in markdown it might be easier for you to copy and paste it in. Im not sure how to view the raw comments in Github or i would have done that myself. Thanks! And thanks for the comments! |
Added configuration options to the readme.
|
I had to create a PR to add the readme changes. |
- Success status check - Response time check - Content-type check - JSON schema validation - JSON body check Merged postmanlabs#218 for easy config file usage in the CLI tool. Added Postman test suite settings, which allow you to define which types of basic tests to be included or not, in the postman generation. Added Post test suite file loading (inspired by postmanlabs#218) option for the CLI Added postman-testsuite.json example Added test suite extension option, which offers the option to include manually defined postman tests based. The test extensions are mapped based on the OpenApi operationID.
Update README.md
|
@FrazerBayley Side question: Perhaps a stupid question, what did you do to make all the checks pass? |
It looks like the changes you made to schemaUtils.js is throwing linter errors. See: https://travis-ci.org/github/postmanlabs/openapi-to-postman/jobs/693582963 |
|
Should you request a review? or just wait till the Postman team finds time? |
|
@FrazerBayley We're never far but as you mentioned, it's mostly a matter of finding the time at the moment. 🙂 Someone from the team will check the opened PRs as soon as they can! |
|
Thanks for the input & great library. We know you are all very bussy, so we will remain patient. |
|
@FrazerBayley @thim81 Thank you for the contribution.
|
|
@FrazerBayley Do you have time to adopt based on the input @umeshp7 |
- Success status check - Response time check - Content-type check - JSON schema validation - JSON body check Merged postmanlabs#218 for easy config file usage in the CLI tool. Added Postman test suite settings, which allow you to define which types of basic tests to be included or not, in the postman generation. Added Post test suite file loading (inspired by postmanlabs#218) option for the CLI Added postman-testsuite.json example Added test suite extension option, which offers the option to include manually defined postman tests based. The test extensions are mapped based on the OpenApi operationID.
- Success status check - Response time check - Content-type check - JSON schema validation - JSON body check Merged postmanlabs#218 for easy config file usage in the CLI tool. Added Postman test suite settings, which allow you to define which types of basic tests to be included or not, in the postman generation. Added Post test suite file loading (inspired by postmanlabs#218) option for the CLI Added postman-testsuite.json example Added test suite extension option, which offers the option to include manually defined postman tests based. The test extensions are mapped based on the OpenApi operationID.
|
@FrazerBayley Closing this as we already added support for this with help of your contribution. |

I needed a way to let the cli know that i wanted to use
Tagsfor my folder structure, and found that the cli didn't have anywhere to input the Converter options (or at least as far as i could tell).