From edee2ae275a12f52263f13fc4415ec3bc8f7b9e8 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Mon, 27 Feb 2023 12:08:11 +0100 Subject: [PATCH] Respect array examples --- src/Gatherer/Property.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gatherer/Property.php b/src/Gatherer/Property.php index 05a521f..9c3fb85 100644 --- a/src/Gatherer/Property.php +++ b/src/Gatherer/Property.php @@ -100,6 +100,10 @@ public static function gather( } else { $exampleData = 'generated_' . $propertyName; } + + if ($type === 'array') { + $exampleData = [$exampleData]; + } } $type = new PropertyType( 'scalar',