Skip to content

Commit 782f280

Browse files
committed
bugfix: operationId is now camel-case
1 parent 864243e commit 782f280

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/helpers/Swagger/AnnotationData.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ private function constructOperationId()
111111
{
112112
// remove the namespace prefix of the class and make the first letter lowercase
113113
$className = lcfirst(Utils::shortenClass($this->className));
114-
return $className . $this->methodName;
114+
// make the 'a' in the action prefix uppercase to match the camel-case notation
115+
$endpoint = ucfirst($this->methodName);
116+
return $className . $endpoint;
115117
}
116118

117119
/**

0 commit comments

Comments
 (0)