You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`flat member at position ${customPosition} with index ${conflictingIndex} conflicts with nested member at position ${autoPosition}`
389
-
)
405
+
.map((collision)=>{
406
+
if(collision.type==="flat-to-nested"){
407
+
return`flat member at position ${collision.position1} with index ${collision.conflictingIndex} conflicts with nested member at position ${collision.position2}`
408
+
}else{
409
+
return`flat members at positions ${collision.position1} and ${collision.position2} both use index ${collision.conflictingIndex}`
410
+
}
411
+
})
390
412
.join("; ")
391
413
392
414
consterrorMessage=
393
415
`[TSchema.Union] Index collision detected: ${collisionDetails}. `+
394
-
`Flat members' indices must not equal the array position of nested members. `+
416
+
`Flat members' indices must not equal the array position of nested members, and each flat member must have a unique index. `+
395
417
`Recommendation: Use indices 100+ for flat members to avoid collision with auto-indices, or set flat: false.`
0 commit comments