fix: 修复递归调用类型错误问题

This commit is contained in:
2026-01-05 18:05:45 +08:00
parent 2996fc4732
commit 20b6c48640

View File

@@ -208,7 +208,7 @@ func generateSchemaRecursive(t reflect.Type, seen map[string]bool) *openapi3.Sch
return nil
}
return &openapi3.SchemaRef{
Value: openapi3.NewArraySchema().WithItems(elemSchema),
Value: openapi3.NewArraySchema().WithItems(elemSchema.Value),
}
case reflect.Map: