Download the PHP package awuttig/codeception-api-validator without Composer
On this page you can find all versions of the php package awuttig/codeception-api-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awuttig/codeception-api-validator
More information about awuttig/codeception-api-validator
Files in awuttig/codeception-api-validator
Package codeception-api-validator
Short Description Validate API Requests and Responses against Swagger / OpenAPI definitions
License
Informations about the package codeception-api-validator
codeception-api-validator
Validate API Requests and Responses against Swagger / OpenAPI definitions
Installation
You need to add the repository into your composer.json file
Usage
You can use this module as any other Codeception module, by adding 'ApiValidator' to the enabled modules in your Codeception suite configurations.
Enable module and setup the configuration variables
- The
schema
could be set in config file directly and via$I->haveOpenApiSchema
or$I->haveSwaggerSchema
Update Codeception build
Implement the cept / cest
Methods
seeRequestIsValid()
Validates the current request against the current schema definiton.
seeResponseIsValid()
Validates the current response against the current schema definiton.
seeRequestAndResponseAreValid()
Validates the current request and response against the current schema definiton.
haveOpenAPISchema()
Set the path to the OpenAPI Schema Specification
haveSwaggerSchema()
Set the path to the Swagger Schema Specification
Authors
- André Wuttig - Concept, Initial work - aWuttig
See also the list of contributors who participated in this project.
All versions of codeception-api-validator with dependencies
codeception/module-phpbrowser Version ^3.0.0
codeception/module-rest Version ^3.0.0
eleven-labs/api-validator Version ~0.7.0
symfony/serializer Version ^3.4