Skip to content

build(deps-dev): bump zircote/swagger-php from 6.13.0 to 6.15.0 - #4817

Merged
thorsten merged 1 commit into
mainfrom
dependabot/composer/zircote/swagger-php-6.15.0
Oct 23, 2026
Merged

thorsten merged 1 commit into
mainfrom
dependabot/composer/zircote/swagger-php-6.15.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 23, 2026

Copy link
Copy Markdown
Contributor

Bumps zircote/swagger-php from 6.13.0 to 6.15.0.

Release notes

Sourced from zircote/swagger-php's releases.

6.15.0

Spec pipeline

#[OA\Components] holds components declared on its members

A class carrying #[OA\Components] now takes in the components declared on its methods. One without a key is named after the method, the way a class names its own. Many schemas can share one class, one method each, and each method's docblock becomes its description. A parameter is still keyed by its name:. (#2261)

#[OA\Components]
class Models
{
    /** A thing someone owns. */
    #[OA\Schema(type: OA\Type::Object, properties: ['id' => OA\Type::Integer])]
    public function thing() {}
#[OA\Response(description: 'No such thing')]
public function notFound() {}

}

This gives #/components/schemas/thing and #/components/responses/notFound.

Smaller fixes

  • The parameter subclasses (Parameter\Query, Path, Header, Cookie), MediaType\Json and Xml, and the typed security schemes accept component:. Before, following the 6.12 deprecation on one of them failed with Unknown named parameter $component and the class was skipped. (#2260)
  • Attributes declared on a constructor are reported with a warning. Spec still ignores them, so they belong on the class. (#2257)

Rector set

The classic-to-spec set now also:

  • rewrites the type names classic maps, type: 'long' for example, to the type and format they stand for (#2255)
  • turns a reference in a Property's schema:, a pointer or a ::class, into the nested schema's ref (#2258)
  • rewrites every literal item of security: to a Security\Requirement, bare scheme names and arrays alike (#2259, #2262)

Output changes

Hybrid keeps a security requirement written as a scheme name

This changes hybrid output. Classic reads security: ['bearerAuth'] as that scheme with no scopes. Hybrid dropped the string without a word and wrote security: [], so the operation was documented as public. It now reads it as classic does, and warns, since spec does not accept the form. Spec used to crash on it with a TypeError. It now drops it with a warning, and the operation falls back to the requirements declared above it. (#2259)

Hybrid keeps schema components declared on a method

This changes hybrid output. A named Schema on a method, #[OAT\Schema(schema: 'Thing', ...)] on a model() method for example, is a component in classic. Hybrid dropped it, and every $ref to it pointed at nothing. It is now kept as classic keeps it. (#2256)

Classic type aliases in hybrid and spec

This changes hybrid and spec output. Hybrid and spec wrote type: 'long', 'int', 'float', 'bool', 'date' and the other names classic maps as they were, which is not a valid type, with an "unknown type" warning. They now get the type and format classic gives them, integer with int64 for long for example, and a deprecation per alias in place of the warning. The translation is removed in 8.0, and -c typeAliases.enabled=false switches it off now. (#2255)

What's Changed

... (truncated)

Commits
  • 892dc2c feat(Rector): rewrite security requirement arrays to Security\Requirement (#2...
  • 1ddbfd7 feat(Spec): let a #[Components] class hold components declared on its methods...
  • 6305d64 fix(Spec): accept component on the parameter, media type and security scheme ...
  • d6a28f6 fix(Security): handle a bare scheme name in security requirements (#2259)
  • 0997804 fix(Rector): turn a reference in a Property schema into a ref (#2258)
  • 5bba3d2 fix(Spec): report attributes declared on a constructor (#2257)
  • d9ee28e fix(HybridBridge): keep schema components declared on methods (#2256)
  • c3b5b5c feat(Augmenter): translate classic type aliases in hybrid and spec (#2255)
  • c5361c2 fix(Builder): quote response codes in hybrid and spec YAML (#2254)
  • 81757de chore(deps-dev): bump @​redocly/cli (#2253)
  • Additional commits viewable in compare view

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 [zircote/swagger-php](https://github.com/zircote/swagger-php) from 6.13.0 to 6.15.0.
- [Release notes](https://github.com/zircote/swagger-php/releases)
- [Commits](zircote/swagger-php@6.13.0...6.15.0)

---
updated-dependencies:
- dependency-name: zircote/swagger-php
  dependency-version: 6.15.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 Oct 23, 2026
@thorsten
thorsten merged commit 24f7271 into main Oct 23, 2026
19 checks passed
@dependabot
dependabot Bot deleted the dependabot/composer/zircote/swagger-php-6.15.0 branch October 23, 2026 14:50
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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant