Skip to content

7.10.0

Latest

Choose a tag to compare

@DerManoMann DerManoMann released this 24 Nov 20:33
244fb23

7.10 adds reusable callbacks in components and exclude lists to PathFilter, and reports several things that used to go missing without a word.

Some of this changes the generated document or a message. Changed output in 7.10 has the details.

Added

  • Spec: #[OA\Callback], a runtime expression and the operations sent to it. Nested in an operation's callbacks, or filed into components.callbacks with component: and referenced with ref: (#2425)
  • PathFilter takes excludeTags and excludePaths, applied after the include lists (#2436)

Changed output

  • Hybrid: callbacks: on a classic Components is written to components.callbacks. Before, it was left out without a message. A document passed to Builder::withDocument() keeps its components.callbacks too (#2425)
  • Spec and hybrid: a 3.2 document leaves out a tag's parent that names no tag of the document on every compile, not only after validate() (#2437)
  • Spec and hybrid: an encoding without a name is an error wherever its media type sits. Before, some were left out without a message (#2441)
  • Spec and hybrid: in 3.0, prefixItems, unevaluatedItems, unevaluatedProperties, if, then and else are warnings, one per keyword. Before, they were errors (#2440)
  • Spec and hybrid: messages about a nested schema, encoding, header, link or example name the location of the attribute holding it, instead of in unknown (#2440, #2441)

Changed

  • A spec Components list holding anything other than spec attributes throws, naming the list (#2425)
  • OpenApi32Compiler::validate() no longer changes the tags it checks, and Augmenter\MediaTypes no longer keys encoding lists (#2437, #2441)
  • A plugins page in the guide (#2434)

What's Changed

  • ci(Workflows): skip the test workflows on text-only changes by @DerManoMann in #2435
  • docs(Guide): add a plugins page by @DerManoMann in #2434
  • docs(Roadmap): link the new roadmap issue by @DerManoMann in #2439
  • feat(Augmenter): add exclude lists to PathFilter by @DerManoMann in #2436
  • fix(Compiler): leave out an unknown tag parent in 3.2 without validating first by @DerManoMann in #2437
  • chore(deps-dev): update rector/rector requirement from 2.8.4 to 2.8.5 by @dependabot[bot] in #2445
  • chore(deps-dev): update phpstan/phpstan requirement from 2.3.5 to 2.3.7 by @dependabot[bot] in #2444
  • chore(deps-dev): update friendsofphp/php-cs-fixer requirement from 3.95.30 to 3.95.32 by @dependabot[bot] in #2443
  • chore(deps-dev): bump @redocly/cli from 2.78.0 to 2.82.0 in the npm group across 1 directory by @dependabot[bot] in #2442
  • fix(Augmenter): report an encoding without a name instead of dropping it silently by @DerManoMann in #2441
  • fix(Compiler): report schema keywords and locations alike in 3.0 and 3.1 by @DerManoMann in #2440
  • feat(Spec): reusable callbacks in components by @DerManoMann in #2425
  • docs(Guide): changed output in 7.10 by @DerManoMann in #2446

Full Changelog: 7.9.0...7.10.0