Table of Contents

Interface IReadOnlyValidationContext

Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.Validation
Assembly
SemanticBridge.dll

Read-only view of validation context state for consumption by validation rules

public interface IReadOnlyValidationContext
Extension Methods

Properties

DimensionNames

Legacy name for FieldNames. Returns the same set; retained as a default-implemented alias so external rule lambdas that read ctx.DimensionNames still compile.

[Obsolete("Use FieldNames. DimensionNames is the legacy name and will be removed in a future release.")]
IReadOnlySet<string> DimensionNames { get; }

Property Value

Type Description
IReadOnlySet<string>

FieldNames

Read-only view of field names seen during traversal for uniqueness validation

IReadOnlySet<string> FieldNames { get; }

Property Value

Type Description
IReadOnlySet<string>

JoinNames

Read-only view of join names seen during traversal for uniqueness validation

IReadOnlySet<string> JoinNames { get; }

Property Value

Type Description
IReadOnlySet<string>

MeasureNames

Read-only view of measure names seen during traversal for uniqueness validation

IReadOnlySet<string> MeasureNames { get; }

Property Value

Type Description
IReadOnlySet<string>

Methods

MakeError(string, string, IMetricViewObject, string?)

Creates a diagnostic error message with the current path context. Errors should indicate a problem that will prevent further correct functioning.

DiagnosticMessage MakeError(string code, string message, IMetricViewObject metricViewObject, string? property = null)

Parameters

Type Name Description
string code

unique identifying code

string message

The error message

IMetricViewObject metricViewObject

The Metric View object currently being validated

string property

The property that has the error

Returns

Type Description
DiagnosticMessage

A DiagnosticMessage with Error severity

MakeWarning(string, string, IMetricViewObject, string?)

Creates a diagnostic warning message with the current path context. Warnings should indicate a problem that deserves attention, but doesn't necessarily prevent correct functioning.

DiagnosticMessage MakeWarning(string code, string message, IMetricViewObject metricViewObject, string? property = null)

Parameters

Type Name Description
string code

unique identifying code

string message

The warning message

IMetricViewObject metricViewObject

The Metric View object currently being validated

string property

The property that has the warning

Returns

Type Description
DiagnosticMessage

A DiagnosticMessage with Warning severity