One finding produced by inspectDataModel.

interface Issue {
    code: string;
    context?: Record<string, unknown>;
    message: string;
    resourceId?: string;
    severity: inspect.dataModel.IssueSeverity;
    summary?: string;
}

Properties

code: string

Stable code (e.g. "OBJECT_UNKNOWN_TYPE"). Built-in codes are CONSTANT_CASE; custom inspections should namespace ("MyApp/CHECK_NAMING").

context?: Record<string, unknown>

Structured payload for tooling. Consumers should treat missing keys defensively.

message: string
resourceId?: string

The DataModel resource this issue is about. DataObject ids pass through directly; Relationships — which have no stable id — get a synthetic ${relating}->${related}#${type} locator.

summary?: string

Optional one-line summary for UI rendering — the few ids / type names worth surfacing without parsing message.