Skip to content

Commit

Permalink
#23190: Removed constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Jul 14, 2019
1 parent c231169 commit c125c89
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/code/Magento/Webapi/Model/Rest/Swagger/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ class Generator extends AbstractSchemaGenerator
/** Array signifier */
const ARRAY_SIGNIFIER = '[0]';

/**
* Wrapper node for XML requests
*/
private XML_SCHEMA_PARAMWRAPPER = 'request';

/**
* Swagger factory instance.
*
Expand Down Expand Up @@ -883,7 +878,7 @@ private function generateBodySchema($parameterName, $parameterInfo, $description
$bodySchema['xml'] = [];
}
if (!isset($bodySchema['xml']['name']) || empty($bodySchema['xml']['name'])) {
$bodySchema['xml']['name'] = self::XML_SCHEMA_PARAMWRAPPER;
$bodySchema['xml']['name'] = 'request';
}

return $bodySchema;
Expand Down

0 comments on commit c125c89

Please sign in to comment.