Hybrid and spec output
- An inferred empty default on an object schema is written as
{}, not[](#2328, reported in #2327) - A docblock
@exampletakes the schema's type.@example 42on an integer property now gives42, 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 ofcomponentswithout 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