Property Validation
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
Validation
Gets the entity validation result for this element.
public EntityValidationResult Validation { get; }
Property Value
- EntityValidationResult
An EntityValidationResult that reports the auto-detected EntityKind and whether the extracted value conforms to that entity's expected format. Possible statuses: Valid, Repaired (value was auto-corrected), Invalid (value does not match), or NotApplicable (no validator exists).
Examples
var v = element.Validation;
if (v.Status == EntityValidationStatus.Repaired)
{
Console.WriteLine($"Auto-corrected from: {v.OriginalValue}");
}