Skip to content

build(deps-dev): bump zircote/swagger-php from 6.10.0 to 6.12.0 - #4765

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Bumps zircote/swagger-php from 6.10.0 to 6.12.0.

Release notes

Sourced from zircote/swagger-php's releases.

6.12.0

CLI diagnostics go to stderr

Without -o, bin/openapi writes the document to stdout, and its warnings went there too, so openapi src > openapi.yaml put them into the file ahead of the YAML. Diagnostics now go to stderr, and stdout carries only the document.

A script that reads warnings from stdout has to read stderr instead. With -o, warnings used to be the only thing on stdout, so a check like openapi src -o openapi.yaml | grep -q warning && exit 1 worked. It now finds nothing and passes. Read both streams with 2>&1.

An operation's security: [] is kept

An operation opts out of a root security requirement with security: []. Spec and hybrid modes dropped the empty list as if it were unset, so the operation documented as requiring the root's authentication. It is now emitted. Classic mode was not affected.

Spec pipeline

One component: key on every reusable attribute

Each reusable OpenApi\Spec attribute names the key it is filed under with component:, in place of a field spelled after its own type. PathItem and MediaType take it too, and can now be reused: a keyed PathItem is a components.pathItems entry from 3.1, and a keyed MediaType a components.mediaTypes entry from 3.2. See Components.

The old spellings keep working and produce the same document. Used as a component key, schema:, parameter:, request:, securityScheme:, response:, header:, link: and example: now trigger a deprecation, and are removed in 8.0. Only their use as a component key is deprecated: response: 404 on a nested response is the nesting key and stays. Classic attributes report nothing.

A schema's title is no longer used as its component key; a schema with no key is reported.

Contributing to a document before resolution

Builder::withSpecification() hands the assembled Specification to a callable after the scan and before resolution. What it adds is resolved, augmented and compiled with the scanned sources, so a $ref in a contribution resolves. That makes it the place for metadata with nothing to scan: an entity registry, a serializer's configuration, another library's attributes. See Extension points.

Two attributes for one key: one survives, and it is reported

Two operations on the same path and method, or two schemas with the same key, used to be settled by the compiler, which kept whichever it wrote last and said nothing. A merger pass now applies one rule to every root collection: the later entry wins, and the collision is reported with both locations. Builder::withMergers() takes your own mergers ahead of it, and getMeta()/setMeta() on every attribute lets a package mark its contributions so its merger can recognise them.

One output change: for two PathItems on the same path, the later one now wins, as everything else does. It used to be the first.

Result now also carries what the spec pipeline logged during the build, not only the compiler's diagnostics.

A clearer ambiguous-merge error

An attribute that matches more than one sibling on the same target, such as a Header stacked beside two Responses, now says what to do about it: nest it in the one it belongs to, or give it a component and reference it from each.

Changes

Full Changelog: zircote/swagger-php@6.11.0...6.12.0

... (truncated)

Commits
  • f7c0fc6 fix(Spec): date the component: key deprecations to 6.12, the release that shi...
  • 721a50b fix(Console): send diagnostics to stderr, so they stay out of the document on...
  • b5c5cc8 fix(Compiler): keep an operation's explicit security: [] instead of dropping ...
  • 6dcdc1d feat(Builder): a merger registry, and one entry per key in the Specification ...
  • a43bda3 fix(Assembler): say what to do about an ambiguous merge (#2222)
  • 26540b8 feat(Spec): add component:, one key field on every reusable attribute (#2219)
  • e5b1e5d chore(deps-dev): bump @​redocly/cli in the npm group across 1 directory (#2221)
  • a0297f5 feat(Builder): add withSpecification(), a contribution seam before resolution...
  • f998f7e docs(Guide): add a why-spec page, and stop three places underselling it (#2217)
  • 53b8f5f docs(Roadmap): say when classic goes, and mark what the file says is marked (...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file PHP Pull requests that update Php code labels Oct 14, 2026
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c2015dbd-70d7-49aa-a309-e67435b0cddc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thorsten

Copy link
Copy Markdown
Owner

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/composer/zircote/swagger-php-6.12.0 branch from 20f7184 to e26c62e Compare October 15, 2026 17:07
@thorsten

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps [zircote/swagger-php](https://github.com/zircote/swagger-php) from 6.10.0 to 6.12.0.
- [Release notes](https://github.com/zircote/swagger-php/releases)
- [Commits](zircote/swagger-php@6.10.0...6.12.0)

---
updated-dependencies:
- dependency-name: zircote/swagger-php
  dependency-version: 6.12.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/composer/zircote/swagger-php-6.12.0 branch from e26c62e to 8a51d26 Compare October 15, 2026 19:41
@thorsten
thorsten merged commit 8b55f63 into main Oct 16, 2026
19 checks passed
@thorsten
thorsten deleted the dependabot/composer/zircote/swagger-php-6.12.0 branch October 16, 2026 17:01
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