Fix TS object API generation of schema containing array of enumeration having no zero default (#8832)

* set the array constructor to fill with minvalue

* add regression generation test
This commit is contained in:
Justin Davis
2025-12-07 07:35:38 -05:00
committed by GitHub
parent 89430a14d6
commit 7711e84919
3 changed files with 27 additions and 5 deletions

12
tests/non_zero_enum.fbs Normal file
View File

@@ -0,0 +1,12 @@
enum NonZero: ubyte {
VAL = 1,
}
struct NonZeroArrayStruct {
data: [NonZero:4];
}
table NonZeroVectorTable {
values: [NonZero];
value: NonZero = VAL;
}