packagist zircote/swagger-php 7.7.0

2 hours ago

7.7 reports every property an OpenAPI version leaves out, where most were dropped without a word before, and writes the extensions on components and properties that were lost.

Both change the log or the generated document. Changed output in 7.7 has the details.

Changed output

  • Spec and hybrid: 3.0 and 3.1 warn about the properties they leave out, such as a tag's summary, parent and kind, and at 3.0 an info summary and eight 2020-12 schema keywords. Before, they were left out without a message. The license identifier and media type component warnings now read like the others (#2396, #2404)
  • Spec and hybrid: x on #[OA\Components] is written on components, and x on a property on its schema. Before, both were left out without a warning (#2405)

Changed

  • A compiler subclass lists what a version leaves out in UNSUPPORTED_PROPERTIES, and filter() drops it. The 3.0 compiler's own compileInfo() and compileLicense() and the 3.2 compiler's own compileTag() are gone (#2403, docs)
  • TypeResolver reads a member's types and maps them in two steps, so a subclass can change the types in between through toSchemaType() (#2398)

Deprecated

  • x on Security\Requirement, removed in 8.0. A Security Requirement Object cannot carry extensions, so it is left out with a warning (#2405)

What's Changed

  • refactor(Type): split reading a member's types from mapping them by @DerManoMann in #2398
  • feat(Compiler): warn about properties a version leaves out by @DerManoMann in #2396
  • refactor(Compiler): leave out the listed properties in filter() by @DerManoMann in #2403
  • refactor(Compiler): leave out media type components through the lists by @DerManoMann in #2404
  • fix(Compiler): write the extensions of components and properties by @DerManoMann in #2405
  • test(Compiler): check that every property is written or reported by @DerManoMann in #2406
  • docs(Guide): changed output in 7.7 by @DerManoMann in #2407

Full Changelog: 7.6.0...7.7.0

Don't miss a new swagger-php release

NewReleases is sending notifications on new releases.