Improve validation for junction.edge to handle non-object/array types

This commit is contained in:
2026-05-13 17:19:26 +02:00
parent 9ee22ff7c9
commit 292674fced

View File

@@ -3421,7 +3421,11 @@ function validateSplineCorridorJunction(
); );
} }
if (!isRecord(junction.edge)) { if (
typeof junction.edge !== "object" ||
junction.edge === null ||
Array.isArray(junction.edge)
) {
diagnostics.push( diagnostics.push(
createDiagnostic( createDiagnostic(
"error", "error",