diff --git a/src/Parameters/BodyParametersGenerator.php b/src/Parameters/BodyParametersGenerator.php index 4c5a38c..c11702f 100644 --- a/src/Parameters/BodyParametersGenerator.php +++ b/src/Parameters/BodyParametersGenerator.php @@ -109,7 +109,7 @@ protected function addToProperties(array & $properties, array $nameTokens, array } if ($name === '*') { - if (empty($properties)) { + if (!empty($properties) && !Arr::has($properties, 'properties')) { $propertyObject = $this->createNewPropertyObject($type, $rules); foreach ($propertyObject as $key => $value) { Arr::set($properties, $key, $value);