Skip to content

Commit c125c89

Browse files
authored
#23190: Removed constant
1 parent c231169 commit c125c89

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ class Generator extends AbstractSchemaGenerator
4141
/** Array signifier */
4242
const ARRAY_SIGNIFIER = '[0]';
4343

44-
/**
45-
* Wrapper node for XML requests
46-
*/
47-
private XML_SCHEMA_PARAMWRAPPER = 'request';
48-
4944
/**
5045
* Swagger factory instance.
5146
*
@@ -883,7 +878,7 @@ private function generateBodySchema($parameterName, $parameterInfo, $description
883878
$bodySchema['xml'] = [];
884879
}
885880
if (!isset($bodySchema['xml']['name']) || empty($bodySchema['xml']['name'])) {
886-
$bodySchema['xml']['name'] = self::XML_SCHEMA_PARAMWRAPPER;
881+
$bodySchema['xml']['name'] = 'request';
887882
}
888883

889884
return $bodySchema;

0 commit comments

Comments
 (0)