packagist zircote/swagger-php 6.20.1

4 hours ago

Hybrid and spec output

  • An inferred empty default on an object schema is written as {}, not [] (#2328, reported in #2327)
  • A docblock @example takes the schema's type. @example 42 on an integer property now gives 42, not "42" (#2330)
  • Class names in a nested schema's discriminator mapping are resolved to component pointers. Before, they reached the document unchanged and made it invalid (#2331)
  • A component key set after construction, such as $schema->schema = 'Pet', is read. Before, the schema was left out of components without a warning (#2333)

Classic and hybrid

  • A class-level #[OA\ExternalDocumentation] next to tags that already have their own goes to the root. Before, classic dropped it silently and hybrid warned about it twice (#2334)

Backported from master in #2337.

Full Changelog: 6.20.0...6.20.1

Don't miss a new swagger-php release

NewReleases is sending notifications on new releases.