From a479a343d7b91409a5b44cd1facd0a06d07fa3c3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 17 Jan 2024 16:29:00 +0100 Subject: [PATCH] fix(scopes): Don't generate "full" scope when there is none Signed-off-by: Joas Schilling --- generate-spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-spec b/generate-spec index 19971c0..147358c 100755 --- a/generate-spec +++ b/generate-spec @@ -773,7 +773,7 @@ if ($useTags) { $openapi["tags"] = $tags; } -$hasSingleScope = count($scopePaths) === 1; +$hasSingleScope = count($scopePaths) <= 1; $fullScopePathArrays = []; if (!$hasSingleScope) {