From f0cb79ecfbbb5208168b998209c9fbb9e3e0a2de Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 25 Aug 2026 05:09:22 +0200 Subject: [PATCH] Correct nullable fission schema witness --- crates/ghostlight-dungeon/src/compiler.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/ghostlight-dungeon/src/compiler.rs b/crates/ghostlight-dungeon/src/compiler.rs index d9cae84..99ef790 100644 --- a/crates/ghostlight-dungeon/src/compiler.rs +++ b/crates/ghostlight-dungeon/src/compiler.rs @@ -3838,9 +3838,12 @@ mod tests { fission["properties"]["child_partition_values"]["type"], "array" ); - assert_eq!( - fission["properties"]["member_child_assignments"]["type"], - "array" + assert!( + fission["properties"]["member_child_assignments"]["anyOf"] + .as_array() + .unwrap() + .iter() + .any(|variant| variant["type"] == "array") ); assert_eq!( fission["properties"]["resource_child_assignments"]["type"],