Repository navigation
7.11 fixes what two Laravel applications ran into on 7.10: references a class's schemas could not resolve, external $refs reported as errors, Laravel resources written as arrays, and messages ending in in unknown.
Some of this changes the generated document or a message. Changed output in 7.11 has the details.
Changed output
- Classic, spec and hybrid: a docblock type naming a collection class, one implementing
ArrayAccessorTraversablesuch as a Laravel resource, references the class's schema where it has one. Before, it was an array of anything, and a list of such a class an array of arrays (#2453) - Spec and hybrid: a class declaring several schemas, exactly one of them without a name, is referenced as that one. Before, the reference was reported as ambiguous (#2448)
- Spec and hybrid: a
$refto another document, such as a URL or a file, is written as given without an error (#2452) - Spec and hybrid: a keyword beside
$refthat repeats the referenced component, such astype: 'object', is dropped without a warning (#2451) - Spec and hybrid: an unresolved, ambiguous or dangling reference is reported once per place it is written, with that place's location (#2450)
- Spec and hybrid: more messages about nested attributes, the classic type-alias notice among them, name the nearest attribute with a location instead of
in unknown(#2449, #2454) - Spec and hybrid: the message for an unmatched union member says the whole union is omitted (#2447)
Changed
Augmenter\ComponentKeysis a new default augmenter (#2448)RefInterface::getRefKey()returnsnullfor a ref to another document (#2452)- Changed in 7.11 lists the protected methods that changed, for subclasses
What's Changed
- fix(Augmenter): report an unmatched union member as omitting the whole union by @DerManoMann in #2447
- fix(Augmenter): reference the unnamed schema of a class that also declares named ones by @DerManoMann in #2448
- fix(Compiler): report nested attributes without a location at their nearest located holder by @DerManoMann in #2449
- fix(Compiler): drop a sibling beside $ref that repeats the referenced schema without a warning by @DerManoMann in #2451
- fix(Refs): leave a $ref to another document alone by @DerManoMann in #2452
- fix(Refs): report an unresolved reference where it is written by @DerManoMann in #2450
- chore(Config): raise the test suites' memory limit to 512M by @DerManoMann in #2455
- fix(TypeAliases): report a nested alias at its nearest located holder by @DerManoMann in #2454
- fix(Types): reference a collection class's schema where it has one by @DerManoMann in #2453
- docs(Guide): changed output in 7.11 by @DerManoMann in #2456
Full Changelog: 7.10.0...7.11.0