Skip to content

Commit 0813049

Browse files
committed
fix(go): Collection attributes to []any
1 parent 660f30c commit 0813049

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SDK/Language/Go.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ public function getFiles(): array
138138
*/
139139
public function getTypeName(array $parameter, array $spec = []): string
140140
{
141+
if (str_contains($parameter['description'], 'Collection attributes') || str_contains($parameter['description'], 'List of attributes')) {
142+
return '[]any';
143+
}
141144
return match ($parameter['type']) {
142145
self::TYPE_INTEGER => 'int',
143146
self::TYPE_NUMBER => 'float64',

0 commit comments

Comments
 (0)