Skip to content

Commit 43dc0a8

Browse files
Oleksii KorshenkoCarey Sizer
Oleksii Korshenko
authored and
Carey Sizer
committed
MAGETWO-70495: Fix Swagger-generated operation parameter names for "body" parameters #7446
- fixed REST tests
1 parent c2e9d4a commit 43dc0a8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/code/Magento/Webapi/Model/Rest/Swagger/Generator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ protected function getGeneralInfo()
204204
protected function generatePathInfo($methodName, $httpMethodData, $tagName)
205205
{
206206
$methodData = $httpMethodData[Converter::KEY_METHOD];
207-
$operationId = $this->typeProcessor->getOperationName($tagName, $methodData[Converter::KEY_METHOD]) . ucfirst($methodName);
207+
208+
$operationId = $this->typeProcessor->getOperationName($tagName, $methodData[Converter::KEY_METHOD]);
209+
$operationId .= ucfirst($methodName);
210+
208211
$pathInfo = [
209212
'tags' => [$tagName],
210213
'description' => $methodData['documentation'],

dev/tests/api-functional/testsuite/Magento/Webapi/JsonGenerationFromDataObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function getExpectedMultiServiceData()
197197
'required' => true
198198
],
199199
[
200-
'name' => '$body',
200+
'name' => 'testModule5AllSoapAndRestV1NestedUpdatePutBody',
201201
'in' => 'body',
202202
'schema' => [
203203
'required' => [

0 commit comments

Comments
 (0)