Skip to content

Commit ab6d2bf

Browse files
author
Hayder Sharhan
committed
MAGETWO-53008: [Github] Format of responses doesn't match Swagger
- Fixed api functional test.
1 parent 6f4f13f commit ab6d2bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function getExpectedMultiServiceData()
240240
'type' => 'object',
241241
'description' => 'Interface for custom attribute value.',
242242
'properties' => [
243-
'attributeCode' => [
243+
'attribute_code' => [
244244
'type' => 'string',
245245
'description' => 'Attribute code',
246246
],
@@ -250,15 +250,15 @@ public function getExpectedMultiServiceData()
250250
],
251251
],
252252
'required' => [
253-
'attributeCode',
253+
'attribute_code',
254254
'value',
255255
],
256256
],
257257
'test-module5-v1-entity-all-soap-and-rest' => [
258258
'type' => 'object',
259259
'description' => 'Some Data Object short description. Data Object long multi line description.',
260260
'properties' => [
261-
'entityId' => [
261+
'entity_id' => [
262262
'type' => 'integer',
263263
'description' => 'Item ID',
264264
],
@@ -274,7 +274,7 @@ public function getExpectedMultiServiceData()
274274
'type' => 'boolean',
275275
'description' => 'If current entity has a property defined',
276276
],
277-
'customAttributes' => [
277+
'custom_attributes' => [
278278
'type' => 'array',
279279
'description' => 'Custom attributes values.',
280280
'items' => [
@@ -283,7 +283,7 @@ public function getExpectedMultiServiceData()
283283
],
284284
],
285285
'required' => [
286-
'entityId',
286+
'entity_id',
287287
'enabled',
288288
'orders',
289289
],

0 commit comments

Comments
 (0)