From 66af8c8ccd1a1faeb25a95a430b8d565f5063d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krzaczkowski?= Date: Mon, 16 Nov 2015 09:05:52 +0100 Subject: [PATCH] added minItems validation for data parameter in addEvent, anonymousEvent, pageView --- src/services/description.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/services/description.php b/src/services/description.php index 31b2008..b0d37ce 100644 --- a/src/services/description.php +++ b/src/services/description.php @@ -94,8 +94,9 @@ ], 'data' => [ 'required' => false, - 'type' => 'object', - 'location' => 'json' + 'type' => 'array', + 'location' => 'json', + 'minItems' => 1 ] ] ], @@ -117,8 +118,9 @@ ], 'data' => [ 'required' => false, - 'type' => 'object', - 'location' => 'json' + 'type' => 'array', + 'location' => 'json', + 'minItems' => 1 ] ] ], @@ -158,8 +160,9 @@ ], 'data' => [ 'required' => false, - 'type' => 'object', - 'location' => 'json' + 'type' => 'array', + 'location' => 'json', + 'minItems' => 1 ] ] ]