diff --git a/src/Gatherer/Property.php b/src/Gatherer/Property.php index 49321a2..2d63b8a 100644 --- a/src/Gatherer/Property.php +++ b/src/Gatherer/Property.php @@ -49,6 +49,10 @@ public static function gather( if (count($type->payload->properties) === 0) { $type = new PropertyType('scalar', 'mixed', false); } + } else if ($type->payload instanceof PropertyType && $type->payload->payload instanceof \ApiClients\Tools\OpenApiClientGenerator\Representation\Schema) { + if (count($type->payload->payload->properties) === 0) { + $type = new PropertyType('scalar', 'mixed', false); + } } $exampleData = self::generateExampleData($exampleData, $type, $propertyName);