From 1fe94e3072b3c0635b9e2dc9983fecb26f954064 Mon Sep 17 00:00:00 2001 From: Shalvah Date: Mon, 3 Feb 2025 21:22:40 +0100 Subject: [PATCH] 4.40.0 --- CHANGELOG.md | 7 ++++++- src/Commands/GenerateDocumentation.php | 1 + src/Scribe.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e75081c..4ca4f9dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,9 +12,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Removed +# 4.40.0 (3 February 2024) +## Added +- Correctly list required fields for nested objects in OpenAPI spec (request bodies) [99b71ebf0](https://github.com/knuckleswtf/scribe/commit/99b71ebf058e679c3020779583be4de6b576ba3b) +- Add support for defining Groups and Subgroups as enums [#932](https://github.com/knuckleswtf/scribe/pull/932) + # 4.39.0 (31 December 2024) ## Added -- Correctly list required fields for nested objects in OpenAPI spec [#905](https://github.com/knuckleswtf/scribe/pull/905) +- Correctly list required fields for nested objects in OpenAPI spec (responses) [#905](https://github.com/knuckleswtf/scribe/pull/905) - Cursor pagination support in API responses (`cursorPaginate`/`paginate=cursor`) [#917](https://github.com/knuckleswtf/scribe/pull/917) ## Fixed diff --git a/src/Commands/GenerateDocumentation.php b/src/Commands/GenerateDocumentation.php index ab48547b..2d593840 100644 --- a/src/Commands/GenerateDocumentation.php +++ b/src/Commands/GenerateDocumentation.php @@ -63,6 +63,7 @@ public function handle(RouteMatcherInterface $routeMatcher, GroupedEndpointsFact $this->writeExampleCustomEndpoint(); } + /** @var Writer $writer */ $writer = app(Writer::class, ['config' => $this->docConfig, 'paths' => $this->paths]); $writer->writeDocs($groupedEndpoints); diff --git a/src/Scribe.php b/src/Scribe.php index 80259669..6f7f51d6 100644 --- a/src/Scribe.php +++ b/src/Scribe.php @@ -9,7 +9,7 @@ class Scribe { - public const VERSION = '4.39.0'; + public const VERSION = '4.40.0'; /** * Specify a callback that will be executed just before a response call is made