refactor: normalize array type notation from Array<T> to T[] in generators and type mapper

This commit is contained in:
didavila
2026-03-24 16:27:10 +01:00
parent 73dcb6f701
commit e008144813
3 changed files with 15 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ export function mapSwaggerTypeToTs(type?: string): string {
string: 'string',
boolean: 'boolean',
number: 'number',
array: 'Array<unknown>',
array: 'unknown[]',
object: 'unknown'
};
return typeMap[type] || 'unknown';