SkillAgentSearch skills...

SwaggerAssertions

Assert your API requests and responses match with your swagger definition

Install / Use

/learn @Maks3w/SwaggerAssertions
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Swagger Assertions

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

<dl> <dt>Q: Can this library validate my Swagger definition?</dt> <dd>A: No. This library validate your API requests and responses match your Swagger definition.</dd> </dl>

License

Code licensed under BSD 2 clauses terms & conditions.

See LICENSE.txt for more information.

View on GitHub
GitHub Stars138
CategoryDevelopment
Updated5mo ago
Forks27

Languages

PHP

Security Score

82/100

Audited on Oct 16, 2025

No findings