Skip to content

Commit 4138cb7

Browse files
authored
fix(openapi): resource name parameter description (#6178)
fixes #6155
1 parent a188c94 commit 4138cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenApi/Factory/OpenApiFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private function collectPaths(ApiResource $resource, ResourceMetadataCollection
265265
continue;
266266
}
267267

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

0 commit comments

Comments
 (0)