fr3d/swagger-assertions

Test your API requests and responses against your swagger definition

Installs: 808 394

Dependents: 4

Suggesters: 0

Security: 0

Stars: 137

Watchers: 7

Forks: 27

Open Issues: 7

pkg:composer/fr3d/swagger-assertions

v1.0.0 2021-01-08 21:25 UTC

README

Test any API requests and responses match with the models described in the documentation.

This project is compatible with Swagger 2 spec definitions.

Installing via Composer

You can use Composer .

composer require fr3d/swagger-assertions

Usage in PHPUnit

There are two traits for provide predefined helper functions for different assertions.

See examples at examples/PhpUnit

FAQ

Q: Can this library validate my Swagger definition?
A: No. This library validate your API requests and responses match your Swagger definition.

License

Code licensed under BSD 2 clauses terms & conditions.

See LICENSE.txt for more information.