Validate an RPE chart for common structural issues.
Checks performed:
father
type
above
The RPE chart.
Array of ValidationIssue objects (empty = no issues).
const issues = validateChart(chart);const errors = issues.filter(i => i.severity === 'error');if (errors.length > 0) { console.error('Chart has errors:', errors);} Copy
const issues = validateChart(chart);const errors = issues.filter(i => i.severity === 'error');if (errors.length > 0) { console.error('Chart has errors:', errors);}
Validate an RPE chart for common structural issues.
Checks performed:
fatherreferences are in range and not self-referential.type(1–4),above(1 or 2), and non-zero hold length.