diff --git a/lib/services/schema-object-factory.ts b/lib/services/schema-object-factory.ts index 8c72bd989..2abd16eca 100644 --- a/lib/services/schema-object-factory.ts +++ b/lib/services/schema-object-factory.ts @@ -273,7 +273,7 @@ export class SchemaObjectFactory { : undefined; schemas[enumName] = { - type: param.schema?.['type'] ?? 'string', + type: (param.isArray ? param.schema?.['items']?.['type'] : param.schema?.['type']) ?? 'string', enum: _enum }; }