knowledge-graph-preview / lib /dashboard-validator.d.ts
mr4's picture
Upload 136 files
fd8cdf5 verified
export interface ValidationResult {
valid: boolean;
errors: string[];
}
/**
* Validates that the given data conforms to the expected Dashboard JSON structure.
* Checks for the presence and correct types of `nodes` and `edges` arrays,
* and validates that each node has `id`, `type`, `name` and each edge has `source`, `target`, `type`.
* Returns all validation errors found, not just the first.
*/
export declare function validateDashboard(data: unknown): ValidationResult;