packagist zircote/swagger-php 7.5.0

53 minutes ago

7.5 is about the messages spec and hybrid log. A problem that makes the document invalid, or loses something declared, is now an error, and every message follows one form. The Rector set also keeps the operations it used to lose where classic copied an attribute into several others.

Both message changes affect builds and tests that read the log. Changed output in 7.5 has the details.

Changed output

  • Spec and hybrid log an error, rather than a warning, where the document is invalid or something declared is lost. Such a build makes Result::isValid() false, and the CLI exits with 1. Classic type aliases and the array form of a security requirement log a notice (#2375)
  • Spec and hybrid messages are reworded to start with what they are about and end with where it was declared. For example, Ref: dangling reference '#/components/schemas/Pet' - no such component now reads Reference "#/components/schemas/Pet" points to no component. A test matching log lines in full needs updating. Classic's messages are unchanged (#2377)

New

  • The Rector set adds fan: Fan::All where classic copied an attribute into several others, such as one response beside both a Get and a Post. Spec used to skip such a method as an ambiguous merge. ->withSkip([FanOutRector::class]) turns it off (#2372, docs)
  • Writing messages, the form and levels of spec pipeline messages, for contributors (#2375)

What's Changed

  • fix(Rector): add fan: Fan::All where classic copied an attribute into several by @DerManoMann in #2372
  • fix(Spec): log an error where the document is invalid or input is lost by @DerManoMann in #2375
  • fix(Spec): word messages subject first and location last by @DerManoMann in #2377

Full Changelog: 7.4.0...7.5.0

Don't miss a new swagger-php release

NewReleases is sending notifications on new releases.