diff --git a/src/Support/Generator/Parameter.php b/src/Support/Generator/Parameter.php index ac66260e..5b7222a7 100644 --- a/src/Support/Generator/Parameter.php +++ b/src/Support/Generator/Parameter.php @@ -63,6 +63,8 @@ public function toArray(): array 'description' => $this->description, 'deprecated' => $this->deprecated, 'allowEmptyValue' => $this->allowEmptyValue, + 'style' => $this->style, + 'explode' => $this->explode, ]); if ($this->schema) { @@ -72,13 +74,6 @@ public function toArray(): array return array_merge( $result, $this->example instanceof MissingExample ? [] : ['example' => $this->example], - $this->default instanceof MissingExample ? [] : ['default' => $this->default], - ! is_null($this->style) ? [ - 'style' => $this->style, - ] : [], - ! is_null($this->explode) ? [ - 'explode' => $this->explode, - ] : [] ); }