fix(il2cpp): accept names in native type-reference views

This commit is contained in:
morluto committed 2026-10-24 17:21:08 +08:00
1 parent 43c7255dbd
commit af3f025688
4 files changed
+126 -7

No files matched your search

@@ -227,13 +227,13 @@ export const il2cppMetadataViewRequestSchema = z.discriminatedUnion(
}),
...(["return_types", "field_types"] as const).map((collection) =>
z.strictObject({
...indexPage,
...page,
collection: z.literal(collection),
fields: z.array(typeReferenceRowSchema.keyof()).optional(),
}),
),
z.strictObject({
...indexPage,
...page,
collection: z.literal("parameter_types"),
// Owners come from the retained parameters collection.
method_indices: z.array(indexSchema).optional(),