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
Copy file name to clipboardExpand all lines: packages/fs/src/validate.ts
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -352,6 +352,31 @@ async function validateStationReferences(
352
352
errors.push(
353
353
`${station.path}: layout.platforms.${platformIndex}.serviceIds.${serviceIndex}${serviceId} belongs to line ${service.value.lineId}, not ${platform.lineId}`,
`${station.path}: layout.platforms.${platformIndex}.serviceIds.${serviceIndex}${serviceId} does not have a current service revision`,
364
+
);
365
+
continue;
366
+
}
367
+
368
+
for(constrevisionofcurrentRevisions){
369
+
conststationIds=newSet(
370
+
revision.path.stations.map(
371
+
(serviceStation)=>serviceStation.stationId,
372
+
),
373
+
);
374
+
375
+
if(!stationIds.has(station.value.id)){
376
+
errors.push(
377
+
`${station.path}: layout.platforms.${platformIndex}.serviceIds.${serviceIndex}${serviceId} revision ${revision.id} does not include station ${station.value.id} in its current service path`,
0 commit comments