Skip to content

fix(Annotations): add the Info Object's summary field - #2194

Merged
DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:fix/classic-info-summary
Sep 13, 2026
Merged

fix(Annotations): add the Info Object's summary field#2194
DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:fix/classic-info-summary

Conversation

@DerManoMann

Copy link
Copy Markdown
Collaborator

Overview

The Info Object gained summary in OpenAPI 3.1; classic has no property for it, so it cannot be written — the spec pipeline has carried it all along. Fourth fix under the classic spec-compliance carve-out (#2190).

The 3.0 document omits the field silently, matching both the License::$identifier precedent classic-side and the spec compiler's own handling of summary — whether such drops should warn uniformly is a question for a general mechanism, not one field.

Changes

  • Annotations\Info gains summary, omitted from 3.0 documents in jsonSerialize()
  • Attributes\Info takes summary as a constructor parameter
  • HybridBridge::convertInfo() carries it into the spec pipeline
  • New Scratch/InfoObject{,-spec} fixture pins the full Info Object in all three modes; the 3.0 expectation omits summary

The Info Object gained summary in 3.1; classic had no property for it,
so it could not be written. The 3.0 document omits it silently in
jsonSerialize(), matching both the License::$identifier precedent and
the spec compiler's own handling - uniform drop diagnostics are a
question for the wider Since mechanism, not this field. The new
InfoObject fixture pins the full Info Object in all three modes.
DerManoMann added a commit to DerManoMann/swagger-php that referenced this pull request Sep 12, 2026
@DerManoMann
DerManoMann merged commit 938d2cc into zircote:master Sep 13, 2026
18 checks passed
@DerManoMann
DerManoMann deleted the fix/classic-info-summary branch September 13, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant