Skip to content

Releases: osteel/openapi-httpfoundation-testing

v0.7.2

Choose a tag to compare

@osteel osteel released this 01 Jul 16:14
f0fc193

What's Changed

  • Improved compatibility testing by @osteel in #19
  • Improved exception content (invalid field) by @osteel in #21

Full Changelog: v0.7.1...v0.7.2

v0.7.1

Choose a tag to compare

@osteel osteel released this 25 Feb 12:01
259e5c6

What's Changed

New Contributors

Full Changelog: v0.7...v0.7.1

v0.7

Choose a tag to compare

@osteel osteel released this 05 Feb 15:41
6fb2705

Pull requests

Full Changelog: v0.6.1...v0.7

v0.6.1

Choose a tag to compare

@osteel osteel released this 30 Aug 16:57
a470858

Pull requests

  • #11 Laravel 6.x compatibility

v0.6

Choose a tag to compare

@osteel osteel released this 13 Jun 17:03
a480cc1

Breaking changes

Request and response validators merged

The request and response validators are now a single Validator class, and so are the validator builders:

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

// now
use Osteel\OpenApi\Testing\ValidatorBuilder;
use Osteel\OpenApi\Testing\Validator;

As a result, validating request and response objects is now done by the same object and requires the same parameters:

$validator = ValidatorBuilder::fromYaml('my-definition.yaml')->getValidator();

$validator->validate($request, '/users', 'post');
$validator->validate($response, '/users', 'post');

Note that before these changes, validating a request only required the request object, with no parameters.

Pull requests

  • #8 Unified interface for both request and response validation

v0.5

Choose a tag to compare

@osteel osteel released this 27 Mar 15:50
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

v0.4

Choose a tag to compare

@osteel osteel released this 22 Mar 18:29
8401092
  • #4 Add support to validate HttpFoundation Requests and PSR ServerRequests (thanks @lordrhodos)

v0.3

Choose a tag to compare

@osteel osteel released this 07 Mar 18:04
0dfa181
  • #3 Custom exception layer

v0.2

Choose a tag to compare

@osteel osteel released this 18 Jan 18:00
71f7559
  • #2 PHP 8 support

First release 🎉

Choose a tag to compare

@osteel osteel released this 05 Nov 17:50
v0.1

improved README