Table of Contents

Class QuestionValidation

Namespace
JD.AI.Core.Questions
Assembly
JD.AI.Core.dll

Optional validation rules applied to a Question answer before acceptance.

public sealed class QuestionValidation
Inheritance
QuestionValidation
Inherited Members

Properties

ErrorMessage

Human-readable description of the validation rule shown on failure.

public string? ErrorMessage { get; init; }

Property Value

string

Max

Maximum numeric value (for Number).

public double? Max { get; init; }

Property Value

double?

MaxLength

Maximum number of characters allowed (for Text).

public int? MaxLength { get; init; }

Property Value

int?

Min

Minimum numeric value (for Number).

public double? Min { get; init; }

Property Value

double?

Pattern

Regular-expression pattern the answer must match (for Text).

public string? Pattern { get; init; }

Property Value

string