Convert your Swagger JSON file to Postman Collection, along with tests for schema validation and status checks included.
npm install -g postmanschemavalidation
If you want to use the package on-the-go, without installing it to your local machine, follow the below steps. Make sure you have npx installed (npx is shipped by default since npm 5.2.0).
1. Run 'npx postmanschemavalidation'.
2. Follow the instructions to convert swagger json file to postman collection.
- Give absolute path to swagger json file when prompted.
- Once the conversion is done, find the path for postman collection in the logs.
Import the generated collection to Postman to run the tests.
If you are looking at installing the package to your machine and use it locally whenever required, follow the below steps.
1. Run 'npm install -g postmanschemavalidation'.
2. Once the installation is done, run one of the following commands:
'npx validateSchema'
3. Follow the instructions to convert swagger json file to postman collection.
- Give absolute path to swagger json file when prompted.
- Once the conversion is done, find the path for postman collection in the logs.
Import the generated collection to Postman to run the tests.
👤 Tejaswi Desiraju
- LinkedIn: @tejaswidesiraju
This README was generated with ❤️ by readme-md-generator