mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 22:33:12 +01:00
f32d94d929e15dd3b85b69ac83e556ebd633707b
Fix template rendering for tuples (arrays with prefixItems) that contain non-primitive types like $ref or anyOf, which were incorrectly detected as homogeneous tuples. Template Logic Fix: - Check if `item.type` and `first_type.type` are both defined before comparing - Treat items with $ref, anyOf, or missing type as heterogeneous - Apply fix in all three locations: render_type_badge, render_array_items_inline, and render_array_items macros Display Name Enhancement: - Strip trailing digits from ALL type names, not just wrapper types - Types like `DisplayFormat2` now display as `DisplayFormat` - Only adds `_display_name` when it differs from original name