From 292674fced6e1e33f7caca308c84ab72dbfd7d6c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 17:19:26 +0200 Subject: [PATCH] Improve validation for junction.edge to handle non-object/array types --- src/document/scene-document-validation.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/document/scene-document-validation.ts b/src/document/scene-document-validation.ts index ef3520af..b1477c14 100644 --- a/src/document/scene-document-validation.ts +++ b/src/document/scene-document-validation.ts @@ -3421,7 +3421,11 @@ function validateSplineCorridorJunction( ); } - if (!isRecord(junction.edge)) { + if ( + typeof junction.edge !== "object" || + junction.edge === null || + Array.isArray(junction.edge) + ) { diagnostics.push( createDiagnostic( "error",