Home KeywordEvaluation Struct
KeywordEvaluation Struct
Cancel

KeywordEvaluation Struct

Namespace: Json.Schema

Inheritance: KeywordEvaluation 🡒 ValueType 🡒 object

Represents the result of evaluating a keyword, including its validity, associated annotation, and any subschema evaluation results.

Remarks

Use this struct to capture the outcome of a keyword evaluation, such as in schema validation scenarios. The struct provides information about the keyword, whether it was valid, any related annotation data, subschema results, and error information if applicable. The static Ignore field can be used to represent a keyword

Fields

NameTypeSummary
IgnoreKeywordEvaluationRepresents a special evaluation that indicates a keyword should be ignored during processing.

Properties

NameTypeSummary
AnnotationJsonElement?Gets the a JSON annotation produced by the keyword.
ContributesToValidationboolGets a value indicating whether this member participates in validation.
DetailsEvaluationResults[]Gets the collection of evaluation results produced by subschemas.
ErrorstringIf validation failed, this may get an error message.
IsValidboolGets a value indicating whether a validation succeeded.
KeywordstringGets the keyword that produced the evaluation.

Constructors

KeywordEvaluation()

Initializes a new instance of the KeywordEvaluation type.

Declaration

1
public KeywordEvaluation()
Contents