Download the PHP package religisaci/codeception-api-validator without Composer
On this page you can find all versions of the php package religisaci/codeception-api-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download religisaci/codeception-api-validator
More information about religisaci/codeception-api-validator
Files in religisaci/codeception-api-validator
Package codeception-api-validator
Short Description Validate API Requests and Responses against Swagger / OpenAPI definitions. This package is modified awuttig/codeception-api-validator package for PHP 7.4
License
Informations about the package codeception-api-validator
codeception-api-validator
Validate API Requests and Responses against Swagger / OpenAPI definitions
Note: this is based on awuttig/codeception-api-validator and modified for PHP 7.4
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
- Tomáš Hojgr - Modification for PHP 7.4 - Religisaci
See also the list of contributors who participated in this project.
All versions of codeception-api-validator with dependencies
codeception/module-phpbrowser Version *
codeception/module-rest Version *
eleven-labs/api-validator Version *
symfony/serializer Version *