Skip to content

Commit

Permalink
fix: Reduce complexity
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Mar 25, 2024
1 parent 2d58942 commit 6b02989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate-spec
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,12 @@ foreach ($routes as $scope => $scopeRoutes) {
$parameter = [
"name" => $urlParameter,
"in" => "path",
"required" => true,
"schema" => $schema,
];
if ($description !== null) {
$parameter["description"] = $description;
}
$parameter["required"] = true;
$parameter["schema"] = $schema;

$pathParameters[] = $parameter;
}
Expand Down

0 comments on commit 6b02989

Please sign in to comment.