Member Junction
    Preparing search index...

    Result of a constraint validation (validators return arrays of these to report violations)

    interface ConstraintViolation {
        location?: { column?: number; line?: number };
        message: string;
        metadata?: Record<string, any>;
        severity: "critical" | "high" | "medium" | "low";
        suggestion?: string;
        type: string;
    }
    Index

    Properties

    location?: { column?: number; line?: number }

    Location in source code (typically populated by linter, but validators can set for precision)

    message: string

    Human-readable error message (should be specific and actionable)

    metadata?: Record<string, any>

    Additional context metadata (property name, types, valid values, entity name, etc.)

    severity: "critical" | "high" | "medium" | "low"

    Severity level (critical = runtime error, high = likely issues, medium = questionable, low = style)

    suggestion?: string

    Suggested fix for the violation (concrete, actionable recommendation)

    type: string

    Violation type (e.g., 'invalid-field', 'type-mismatch', 'missing-required-property')