Skip to content

chore(deps-dev): bump byjg/swagger-test from 6.0.x-dev to 6.1.0 in /vendor-bin/phpunit - #7979

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/vendor-bin/phpunit/byjg/swagger-test-6.1.0
Open

chore(deps-dev): bump byjg/swagger-test from 6.0.x-dev to 6.1.0 in /vendor-bin/phpunit#7979
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/vendor-bin/phpunit/byjg/swagger-test-6.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 6, 2026

Copy link
Copy Markdown
Contributor

Bumps byjg/swagger-test from 6.0.x-dev to 6.1.0.

Release notes

Sourced from byjg/swagger-test's releases.

Release 6.1.0

Swagger Test 6.1 Release Notes

Overview

Version 6.1 adds full support for the OpenAPI 3.1 specification, including JSON Schema 2020-12 compatibility, webhooks, and the modern schema keywords introduced with it.

This is an additive release. Every Swagger 2.0 and OpenAPI 3.0 schema keeps working unchanged, and no existing test code needs to be touched — see Backward Compatibility.

New Features

OpenAPI 3.1 support

The specification version is detected automatically, so the same call handles 2.0, 3.0 and 3.1:

$schema = Schema::fromFile('/path/to/openapi.json');
echo $schema->getSpecificationVersion();   // "2.0", "3.0" or "3.1"

Supported 3.1 features:

Feature Description
Union types type: ["string", "null"] in place of the deprecated nullable keyword
Webhooks Describe and validate incoming HTTP requests your API receives
const Validate a constant value
if / then / else Conditional schemas
prefixItems Tuple validation — specific types at specific array positions
$ref with siblings References may carry additional keywords alongside them

Nullable handling was extended to cover objects inside oneOf / anyOf / allOf, including nullable objects with required fields and nested $refs.

See the OpenAPI 3.1 Features Guide for details, and the Version comparison for the full support matrix.

New classes

Class Purpose
OpenApi31\OpenApi31Schema OpenAPI 3.1 schema parsing and validation
OpenApi31\OpenApi31RequestBody 3.1 request body matching
OpenApi31\OpenApi31ResponseBody 3.1 response body matching
OpenApi\OpenApiBase Shared base holding the logic common to 3.0 and 3.1

New methods

... (truncated)

Changelog

Sourced from byjg/swagger-test's changelog.

Swagger Test 6.0 Release Notes

Overview

Version 6.0 modernises the test API and the supported platform. The fluent requester replaces the six-parameter makeRequest(), the assertion-style methods become expectation-style, schemas gain proper factory methods, and validation is available as a trait so you are no longer forced to extend ApiTestCase.

This release drops PHP 8.1 and 8.2, and raises byjg/webrequest to ^6.0.

New Features

OpenApiValidation trait

Validation is now available as a trait, so it can be added to any test class:

class MyTest extends MyCustomBaseTest
{
    use OpenApiValidation;
public function setUp(): void
{
    parent::setUp();
    $this->setSchema(Schema::fromFile('openapi.json'));
}

}

ApiTestCase still exists and simply uses the trait, so existing subclasses keep working. This matters for framework integration — a Laravel or Symfony test case must extend the framework's own base class, which previously ruled out ApiTestCase entirely.

See Using the OpenApiValidation trait.

Schema factory methods

Schema::getInstance() suggested a singleton but always built a new object. Three explicit factory methods replace it:

$schema = Schema::fromFile('/path/to/spec.json');   // reads the file for you
$schema = Schema::fromJson($jsonString);
$schema = Schema::fromArray($arrayData);

Each validates its own input type and reports a specific error. getInstance() remains as a deprecated alias.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [byjg/swagger-test](https://github.com/byjg/php-swagger-test) from 6.0.x-dev to 6.1.0.
- [Release notes](https://github.com/byjg/php-swagger-test/releases)
- [Changelog](https://github.com/byjg/php-swagger-test/blob/master/CHANGELOG-6.0.md)
- [Commits](https://github.com/byjg/php-swagger-test/commits/6.1.0)

---
updated-dependencies:
- dependency-name: byjg/swagger-test
  dependency-version: 6.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Aug 6, 2026
@dependabot dependabot Bot added the php Pull requests that update Php code label Aug 6, 2026
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Aug 6, 2026
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 1. to do in Roadmap Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

Status: 1. to do

Development

Successfully merging this pull request may close these issues.

0 participants