Skip to content

v0.5

Choose a tag to compare

@osteel osteel released this 27 Mar 15:50
· 49 commits to main since this release
606f9b4

Breaking changes

Namespaces

The request and response validators are now under their own namespaces:

// before
use Osteel\OpenApi\Testing\ResponseValidatorBuilder;
use Osteel\OpenApi\Testing\ResponseValidator;
use Osteel\OpenApi\Testing\RequestValidatorBuilder;
use Osteel\OpenApi\Testing\RequestValidator;

// now
use Osteel\OpenApi\Testing\Response\ResponseValidatorBuilder;
use Osteel\OpenApi\Testing\Response\ResponseValidator;
use Osteel\OpenApi\Testing\Request\RequestValidatorBuilder;
use Osteel\OpenApi\Testing\Request\RequestValidator;

Response validation parameters

The order of the parameters have changed for the response validation methods (validate, get, post, etc.). The response object is now in first position, e.g.:

// before
$validator->validate('/users', 'get', $response);

// now
$validator->validate($response, '/users', 'get');

Pull requests

  • #6 Update dependencies
  • #7 Refactoring