Skip to content

Commit

Permalink
fix(openapi): resource name parameter description (#6178)
Browse files Browse the repository at this point in the history
fixes #6155
  • Loading branch information
Timu57 authored Feb 29, 2024
1 parent a188c94 commit 4138cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenApi/Factory/OpenApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private function collectPaths(ApiResource $resource, ResourceMetadataCollection
continue;
}

$parameter = new Parameter($parameterName, 'path', (new \ReflectionClass($uriVariable->getFromClass()))->getShortName().' identifier', true, false, false, ['type' => 'string']);
$parameter = new Parameter($parameterName, 'path', "$resourceShortName identifier", true, false, false, ['type' => 'string']);
if ($this->hasParameter($openapiOperation, $parameter)) {
continue;
}
Expand Down

0 comments on commit 4138cb7

Please sign in to comment.