Home EvaluationContext Struct
EvaluationContext Struct
Cancel

EvaluationContext Struct

Namespace: Json.Schema

Inheritance: EvaluationContext 🡒 ValueType 🡒 object

Provides contextual information used during schema evaluation, including options, scope, instance data, and evaluation paths.

Remarks

The EvaluationContext struct encapsulates all relevant data required for evaluating a JSON schema against an instance. It includes evaluation options, dynamic scope for reference resolution, pointers to the current evaluation and instance locations, and access to the schema registry. When building custom keywords that use subschemas, create a new context by copying this one and modifying the Json.Schema.EvaluationContext.EvaluationPath, Json.Schema.EvaluationContext.Instance,

Properties

NameTypeSummary
EvaluatedKeywordsList<KeywordEvaluation>Gets the collection of keyword evaluations that have been performed for the current instance.
EvaluationPathJsonPointerGets or sets a JSON Pointer representing the path through the schemas and across references to the currently evaluated subschema.
InstanceJsonElementGets the JSON element that represents the instance data.
InstanceLocationJsonPointerGets or sets the JSON Pointer indicating the location of the instance within the JSON document.
InstanceRootJsonElementGets the JSON element that represents the instance data root.
OptionsEvaluationOptionsGets the evaluation options.
RefIgnoresSiblingKeywordsboolGets a value indicating whether reference resolution ignores sibling keywords during processing.
SchemaRegistrySchemaRegistryGets the schema registry used to manage and retrieve schema resources.
ScopeDynamicScopeGets the dynamic scope.
Contents