2.0.3 • Published 4 years ago

schema-postman-schemavalidation v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Create postman collection with schema validation and status check using swagger json file

Install

npm install -g swagger-postman-schemavalidation

Usage

Convert your Swagger JSON file to Postman Collection, along with tests for schema validation and status checks included. All this can be done with one command. No additional steps required.

1. Run 'npx swagger-postman-schemavalidation'.

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.

4. Import the generated collection to Postman.
    - Tests for schema validation can be found in ‘Tests’ tab for individual APIs.
    - Status check test case can be found in the collection tests.

API responses will be validated against schema every time you use them.

Installation

If you want to install the required libraries on your machine locally, and re-use it whenever required, follow the below steps.

1. Run 'npm install -g swagger-postman-schemavalidation'.

2. Once the installation is done, run one of the following commands:
    'npx swagger-postman-schemavalidation' or
    '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.

4. Import the generated collection to Postman.
    - Tests for schema validation can be found in ‘Tests’ tab for individual APIs.
    - Status check test case can be found in the collection tests.

API responses will be validated against schema every time you use them.

Author

👤 Tejaswi Desiraju

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

2.0.3

4 years ago

2.0.2

4 years ago